开发者

Highcharts: Is it possible to have separate plotOptions for each series?

开发者 https://www.devze.com 2023-03-18 22:21 出处:网络
I want to have two scatter series on my chart. One with a linewidth of 1 and the other with no lineWidth. As I understand, the plotOptions applies to all charts of the specified type, so either all th

I want to have two scatter series on my chart. One with a linewidth of 1 and the other with no lineWidth. As I understand, the plotOptions applies to all charts of the specified type, so either all the scatter plots have a linewi开发者_如何学编程dth or nothing. Is it possible to apply a plotOptions to specific series?


In addition to the members listed below, any member of the plotOptions for that specific type of plot can be added to a series individually. For example, even though a general lineWidth is specified in plotOptions.series, an individual lineWidth can be specified for each series.

Just pass lineWidth to series as a parameter like:

var series = {
    data: [...],
    lineWidth: 1
};
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号