我想使用 HighCharts 在基于同一时间的 X 轴上显示多个系列。我的数据的问题在于它非常不同。为了正确显示,我需要为每个系列创建一个具有自己比例的 Y 轴。
像那样 :
yAxis: [
{
title: { text: 'Axis 1 with proper scale' }
},{
title: { text: 'Axis 2 with proper scale' }
}
]
然后我为我的系列指定轴:
series: [
{ name: 'Data Serie for axis 1',
yAxis: 0 ,
data: [...]
},{
name: 'Data Serie for axis 2',
yAxis: 1 ,
data: [...]
}]
有没有办法自动做到这一点?我想为每个系列自动创建一个 yAxis。