【问题标题】:ECharts generated label overlaps with dataZoomECharts 生成的标签与 dataZoom 重叠
【发布时间】:2019-01-01 03:22:30
【问题描述】:

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

我还启用了数据缩放。

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

【问题讨论】:

    标签: echarts


    【解决方案1】:

    您需要设置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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-11
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多