Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ECharts: how to show all axis labels?

Echarts seems to have a nice feature that automatically chooses which labels to display depending on the space provided. However, this algorithm seems to be bit too aggressive at times and does not take into account text rotate. I've gone through the chart options and there doesn't appear to be a way to disable this feature. I'm hoping it's just something I've overlooked. Help appreciated.

like image 655
cgat Avatar asked May 19 '17 18:05

cgat


1 Answers

axisLabel (under yAxis or xAxis) has an option interval. Set this to 0 and labels will be displayed.

like image 65
cgat Avatar answered Oct 15 '22 22:10

cgat