是否可以在高股价图中有两个 Y 轴,一个在左边,另一个在右边



是否可以在高股票图表中从高图表中有一个在左边,另一个在右边有 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
    }
}

您可以在此处看到它的工作

相关内容

最新更新