我正在使用 zingchart 画一条线。我想要一张折线图,其中两个 y 轴具有相同的值(如重复的轴),一个在左侧,一个在右侧,以便于读取图形。
我使用以下代码来渲染图表。
zingchart.render({
id: 'Chart2',
data: Config2,
height: '600',
width: '100%'
});
zingchart.exec('Chart2', 'modify', {graphid: 0,
data: {
"title": {
text: ""
},
"scale-x": {
"labels": Labels
}
}
});
zingchart.exec('Chart2', 'addplot', {graphid: 0, plotindex: 1,
data: {
values: Data1_3,
text: "Gain",
"line-width": 5,
"scales": "scale-x,scale-y-3"
}
});
我怎样才能做到这一点?我在zingchart网站上没有找到这样的解决方案,因为通常辅助轴是指不同的曲线。