Highcharts:每个系列可以有独立的plotOptions吗? [英] Highcharts: Is it possible to have separate plotOptions for each series?

查看:497
本文介绍了Highcharts:每个系列可以有独立的plotOptions吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的图表上有两个分散系列。一个线宽为1,另一个没有lineWidth。据我所知,plotOptions适用于指定类型的所有图表,因此所有散点图都有一个线宽或没有。是否有可能将plotOptions应用于特定的系列?

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 linewidth or nothing. Is it possible to apply a plotOptions to specific series?

推荐答案


除了下面列出的成员,该特定类型的plotOptions的任何成员都可以单独添加到系列中。例如,即使在plotOptions.series中指定了一般的lineWidth,也可以为每个系列指定一个单独的lineWidth。

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.

只要通过 lineWidth 系列作为参数:

Just pass lineWidth to series as a parameter like:

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

这篇关于Highcharts:每个系列可以有独立的plotOptions吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆