Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ECharts generated label overlaps with dataZoom

Tags:

echarts

Using ECharts I am giving it a data series that consists of a number of data against really values. (e.g plotting stock prices).

I also have data zoom enabled.

My issue is that the generated X axis' labels overlap with the dataZoom. I can't understand from the documentation how to fix this.

x Axis label overlap issues

like image 909
Conor Avatar asked Jun 12 '17 10:06

Conor


1 Answers

You need to set the value of grid.bottom. This will move the whole grid further from the bottom of the canvas and pull the whole X Axis with it.

Example: grid: { bottom: 60 }

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

Not a great solution but works.

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

like image 179
Conor Avatar answered Nov 14 '22 06:11

Conor