(此文档仅供参考)
问题描述
Echarts双Y图如何设置哪个轴的 0 刻度上?现在是左Y轴再0刻度值上,如何设置右Y轴?
实现方案
此示例的扩展属性如下,相关的属性可以上echarts官网查看,https://echarts.apache.org/zh/option.html#xAxis.axisLine.onZeroAxisIndex
{ "xAxis": { "axisLine": { "onZeroAxisIndex": 1 } } }
最终效果如图:
(此文档仅供参考)
Echarts双Y图如何设置哪个轴的 0 刻度上?现在是左Y轴再0刻度值上,如何设置右Y轴?
此示例的扩展属性如下,相关的属性可以上echarts官网查看,https://echarts.apache.org/zh/option.html#xAxis.axisLine.onZeroAxisIndex
{ "xAxis": { "axisLine": { "onZeroAxisIndex": 1 } } }
最终效果如图: