最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to dynamically change borderColor of series in highcharts? - Stack Overflow

programmeradmin4浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论