@@ -246,6 +246,9 @@ class BarView extends ChartView {
246
246
if ( coord . type === 'cartesian2d' ) {
247
247
( bgEl as Rect ) . setShape ( 'r' , barBorderRadius ) ;
248
248
}
249
+ else {
250
+ ( bgEl as Sector ) . setShape ( 'cornerRadius' , barBorderRadius ) ;
251
+ }
249
252
bgEls [ dataIndex ] = bgEl ;
250
253
return bgEl ;
251
254
} ;
@@ -337,6 +340,9 @@ class BarView extends ChartView {
337
340
if ( coord . type === 'cartesian2d' ) {
338
341
( bgEl as Rect ) . setShape ( 'r' , barBorderRadius ) ;
339
342
}
343
+ else {
344
+ ( bgEl as Sector ) . setShape ( 'cornerRadius' , barBorderRadius ) ;
345
+ }
340
346
bgEls [ newIndex ] = bgEl ;
341
347
}
342
348
const bgLayout = getLayout [ coord . type ] ( data , newIndex ) ;
@@ -990,15 +996,14 @@ function updateStyle(
990
996
( el as Rect ) . setShape ( 'r' , borderRadius ) ;
991
997
}
992
998
else if ( ! seriesModel . get ( 'roundCap' ) ) {
993
- const sector = el as Sector ;
994
999
const sectorShape = ( el as Sector ) . shape ;
995
1000
const cornerRadius = getSectorCornerRadius (
996
1001
itemModel . getModel ( 'itemStyle' ) ,
997
1002
sectorShape ,
998
1003
true
999
1004
) ;
1000
1005
extend ( sectorShape , cornerRadius ) ;
1001
- sector . setShape ( sectorShape ) ;
1006
+ ( el as Sector ) . setShape ( sectorShape ) ;
1002
1007
}
1003
1008
1004
1009
el . useStyle ( style ) ;
0 commit comments