@@ -111,8 +111,8 @@ function handleSplitLine(iChartOption, seriesUnit) {
111111 if ( iChartOption . itemStyle ) {
112112 let { lineStyle, width } = iChartOption . itemStyle ;
113113 width = width || chartToken . barWidth ;
114- seriesUnit . splitLine . length = ( lineStyle && lineStyle . length ) || width || 10 ;
115- seriesUnit . splitLine . distance = width ? width * - 1 : - 3 ;
114+ seriesUnit . splitLine . length = ( lineStyle && lineStyle . length ) || 7 ;
115+ seriesUnit . splitLine . distance = ( lineStyle && lineStyle . distance ) || 0 ;
116116 } else {
117117 seriesUnit . splitLine . length = 7 ;
118118 seriesUnit . splitLine . distance = 0 ;
@@ -123,7 +123,7 @@ function handleSplitLine(iChartOption, seriesUnit) {
123123 } else {
124124 seriesUnit . splitLine . lineStyle . color = chartToken . splitLineColor ;
125125 }
126- seriesUnit . splitLine . lineStyle . width = iChartOption . itemStyle . lineStyle . width || 4 ;
126+ seriesUnit . splitLine . lineStyle . width = iChartOption . itemStyle . lineStyle . width || 2 ;
127127 }
128128}
129129
@@ -597,7 +597,7 @@ export function handleSeries(iChartOption,optionColor,containerWidth,containerHe
597597 const data = iChartOption . data . length ? iChartOption . data : [ { value :0 , name : '' } ] ;
598598 const text = iChartOption . text || { } ;
599599 const axisLabelStyle = iChartOption . axisLabelStyle || { } ;
600- const { silent } = iChartOption ;
600+ const { silent, itemStyle } = iChartOption ;
601601 const radiusSize = containerWidth > containerHeight ? containerHeight : containerWidth ;
602602 // 更改仪表盘轨道底色
603603 handleTheme ( iChartOption ) ;
@@ -607,7 +607,7 @@ export function handleSeries(iChartOption,optionColor,containerWidth,containerHe
607607 } else {
608608 seriesInit . axisLabel [ 'color' ] = chartToken . descRichColor ;
609609 }
610- seriesInit . axisLabel [ 'distance' ] = axisLabelStyle [ 'distance' ] || 22 ;
610+ seriesInit . axisLabel [ 'distance' ] = axisLabelStyle [ 'distance' ] || ( itemStyle ?. width && Number ( itemStyle ?. width ) + 6 ) || 22 ;
611611 seriesInit . axisLabel [ 'fontWeight' ] = axisLabelStyle [ 'fontWeight' ] || 400 ;
612612 seriesInit . axisLabel [ 'fontSize' ] = axisLabelStyle [ 'fontSize' ] || 14 ;
613613 // 组装数据
0 commit comments