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 badges1 Answer
Reset to default 8you 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
版权声明:本文标题:javascript - How to dynamically change borderColor of series in highcharts? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744605590a2615333.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论