HighCharts - 用值而不是百分比比较系列

标签 highcharts

只需要一个简单的答案,是否有一种简单的方法来比较一系列值而不是百分比?像“比较:'值'”而不是“比较:'百分比'”之类的东西,或者我是否必须手动添加给定时间间隔的数据点?谢谢!

最佳答案

是的,但是这个选项叫做value

来自plotOptions.series.compare文档:

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.

文档中的演示:设置比较 percent , value .

关于HighCharts - 用值而不是百分比比较系列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13207017/

相关文章:

javascript - 当悬停国家/地区没有可用数据时,Highmaps 中的自定义光标

javascript - 如何使用自定义 x 轴在同一图表中绘制多个时间序列

javascript 图表框架将两个图表绘制在一起

highcharts - 我可以在 highcharts 中绘制对角线吗?

highcharts - 在 R 中使用 hctreemap2 创建具有不同颜色的 TreeMap

java - 单击 Highcharts 数据导出菜单时应用程序崩溃

javascript - 将系列总数添加到 Highcharts 中的图例

angularjs - highcharts-ng 的注意事项

javascript - Highchart 刻度间隔

javascript - Highcharts javascript控件系列