Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eCharts 5 Axis Label Overlap

enter image description here

I recently upgraded echarts from 4.7.0 to 5.0.0 and noticed that now the x axis labels are overlapping. I've looked through the docs but can't seem to find an option that would resolve this.

The option configuration I have it pretty simple:

gridIndex: ndx, type: "time", splitLine: { show: true }

Would appreciate any help with this!

like image 745
dev_dy Avatar asked Oct 16 '25 16:10

dev_dy


1 Answers

I solved with this option:

xAxis: {
  type: 'time',
  axisLabel: {
    hideOverlap: true
  }
}
like image 113
A_M Avatar answered Oct 18 '25 06:10

A_M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!