gpt4 book ai didi

javascript - 是否可以在 highcharts 的 highstock 图表中有两个 Y 轴,一个在左边,另一个在右边?

转载 作者:行者123 更新时间:2023-11-30 10:36:45 25 4
gpt4 key购买 nike

是否有可能在 highcharts 的 highstock 图表中有 2 个 yAxis,一个在左边,另一个在右边?

谢谢

最佳答案

一个非常简单的例子:
首先,您必须创建新的 yAxis 并设置它的位置。

{
title: {
text: 'Other data panel'
},
top: 300,
height: 100,
offset: 0,
lineWidth: 2,
opposite: true
}

然后,当您创建系列时,您将在哪个 yAxis 中放置它。

{
type: 'column',
name: 'Other',
data: otherData,
yAxis: 2,
dataGrouping: {
units: groupingUnits
}
}

可以看到working here .

关于javascript - 是否可以在 highcharts 的 highstock 图表中有两个 Y 轴,一个在左边,另一个在右边?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13603937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com