HighCharts - compare series with values instead of

2019-07-04 06:29发布

Just a simple answer needed, is there a simple way to compare a series on values rather than percentages? Something like "compare : 'values'" rather than "compare : 'percent'" or do I manually have to add data points for given time intervals? Thanks!

标签: highcharts
1条回答
欢心
2楼-- · 2019-07-04 06:57

Yes, but the option is called value

From the plotOptions.series.compare documentation:

compare: String
Compare the values of the series against the first value in the visible range. The y axis will show percentage or absolute change depending on whether compare is set to "percent" or "value". When this is applied to multiple series, it allows comparing the development of the series against eachother. Defaults to undefined.

The demos from the documentation: Setting compare to percent, value.

查看更多
登录 后发表回答