highcharts / rounded-corners

MIT License
25 stars 27 forks source link

Updating rounded corner radius doesn't work #34

Closed rocklan closed 3 years ago

rocklan commented 3 years ago

Is there a way to update the radius of rounded corners? My problem is that if I have two stacked columns, and one of them goes to 0, I need to animate the other column to have a rounded top.

I have tried:

    myChart.series[0].setOptions({
        borderRadiusBottomLeft: '40%',
        borderRadiusBottomRight: '40%',
        borderRadiusTopLeft: '40%',
        borderRadiusTopRight: '40%'
    });

and I have tried:

    myChart.series[0].borderRadiusBottomLeft = '40%';

But neither seem to work, any suggestions @KacperMadej?

KacperMadej commented 3 years ago

Hi @rocklan

Update series using series.update. Demo: http://jsfiddle.net/BlackLabel/nqxk2ap7/

For technical support see https://www.highcharts.com/blog/support/