admin管理员组

文章数量:1420925

I am using following code to change the bordercolor of series, but it's not working out.

chart.options.plotOptions.series.borderWidth = '3px';
chart.options.plotOptions.series.borderColor = '#FF0000';

jsFiddle

Can anyone please suggest? Thanks.

I am using following code to change the bordercolor of series, but it's not working out.

chart.options.plotOptions.series.borderWidth = '3px';
chart.options.plotOptions.series.borderColor = '#FF0000';

jsFiddle

Can anyone please suggest? Thanks.

Share Improve this question edited Jun 4, 2015 at 5:23 Strikers 4,7762 gold badges31 silver badges59 bronze badges asked Mar 16, 2014 at 20:12 Pooja BansalPooja Bansal 1891 silver badge9 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

you can use series.update() method as shown below, this method updates the options and data for the series. You have to run this method with each and every method to get the settings applied to all the series

chart.series[0].update({ borderWidth: 3, borderColor: '#FF0000' })

Updated your js fiddle here

I hope this is the solution you are looking for.

本文标签: javascriptHow to dynamically change borderColor of series in highchartsStack Overflow