ECharts使用dataZoom

时间:2017-06-12 10:32:38

标签: echarts

使用ECharts我给它一个数据系列,其中包含许多针对真值的数据。 (例如绘制股票价格)。

我也启用了数据缩放功能。

我的问题是生成的X轴'标签与dataZoom重叠。我无法从文档中了解如何解决这个问题。

x Axis label overlap issues

1 个答案:

答案 0 :(得分:3)

您需要设置grid.bottom的值。这将使整个网格从画布底部进一步移动,并用它拉出整个 X轴

示例:grid: { bottom: 60 }

// usage
this._displayedChart.setOption({ grid: { bottom: 10 } })

不是一个很好的解决方案,但有效。

https://ecomfe.github.io/echarts-doc/public/en/option.html#grid.bottom