@@ -152,7 +152,7 @@ export function getEchartsConfig(
152152 "borderColor" : styleContainer ?. chartBorderColor || themeContainer ?. borderColor || 'inherit' ,
153153 "borderWidth" : styleContainer ?. chartBorderWidth || themeContainer ?. borderWidth || detailBorderWidth ,
154154 "borderType" : styleContainer ?. chartBorderStyle || themeContainer ?. borderType ,
155- "borderRadius" : styleContainer ?. chartBorderRadius || themeContainer ?. borderRadius ,
155+ "borderRadius" : Number ( styleContainer ?. chartBorderRadius || themeContainer ?. borderRadius ) ,
156156 "backgroundColor" : styleContainer ?. chartBackgroundColor || themeContainer ?. backgroundColor || defaultBackgroundColor ,
157157 "width" : styleContainer ?. detailSize ?. split ( 'px' ) [ 0 ] || themeContainer ?. detailSize . split ( 'px' ) [ 0 ] || 24 ,
158158 "height" : styleContainer ?. detailSize ?. split ( 'px' ) [ 1 ] || themeContainer ?. detailSize . split ( 'px' ) [ 1 ] || 12 ,
@@ -218,7 +218,7 @@ export function getEchartsConfig(
218218 "borderColor" : props ?. chartStyle ?. chartBorderColor || theme ?. chartStyle ?. borderColor ,
219219 "borderWidth" : props ?. chartStyle ?. chartBorderWidth || theme ?. chartStyle ?. borderWidth ,
220220 "borderType" : props ?. chartStyle ?. chartBorderStyle || theme ?. chartStyle ?. borderType ,
221- "borderRadius" : props ?. chartStyle ?. chartBorderRadius || theme ?. chartStyle ?. borderRadius ,
221+ "borderRadius" : Number ( props ?. chartStyle ?. chartBorderRadius || theme ?. chartStyle ?. borderRadius ) ,
222222 "shadowColor" : props ?. chartStyle ?. chartShadowColor || theme ?. chartStyle ?. shadowColor ,
223223 "shadowBlur" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow ?. split ( 'px' ) [ 0 ] ,
224224 "shadowOffsetX" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. chartStyle ?. boxShadow ?. split ( 'px' ) [ 1 ] ,
@@ -386,7 +386,7 @@ export function getEchartsConfig(
386386 anchor : {
387387 show : true ,
388388 showAbove : true ,
389- size : 10 ,
389+ size : Number ( props ?. pointerWidth ) * 1.5 ,
390390 itemStyle : {
391391 color : props ?. multiTitleGaugeOption ?. data [ 0 ] [ "value" ] . slice ( - 1 ) [ 0 ]
392392 }
@@ -419,6 +419,10 @@ export function getEchartsConfig(
419419 title : {
420420 ...styleWrapper ( props ?. labelStyle , theme ?. labelStyle , 16 ) ,
421421 } ,
422+ pointer : {
423+ ...basicSeries . pointer ,
424+ icon : props ?. multiTitlePointerIcon ,
425+ } ,
422426 detail : {
423427 ...styleWrapper ( props ?. legendStyle , theme ?. legendStyle , 16 , '#ffffff' , 0 , 'inherit' ) ,
424428 formatter : props ?. multiTitleGaugeOption ?. data ?. map ( data => data . formatter ) [ 0 ] ,
@@ -535,17 +539,18 @@ export function getEchartsConfig(
535539 show : false
536540 } ,
537541 progress : {
538- " roundCap" : props . roundCap ,
542+ roundCap : props ? .roundCap ,
539543 show : true ,
540- width : props ?. progressBarWidth ,
544+ width : props ?. ringProgressBarWidth ,
541545 overlap : false ,
542546 clip : false ,
543547 } ,
544- // axisLine: {
545- // lineStyle: {
546- // width: 20 // Reduced from 40
547- // }
548- // },
548+ axisLine : {
549+ roundCap : props ?. roundCap ,
550+ lineStyle : {
551+ width : props ?. ringProgressBarWidth
552+ }
553+ } ,
549554 splitLine : {
550555 show : false
551556 } ,
0 commit comments