In echarts3, how to force axis labels to display

cgat picture cgat · May 19, 2017 · Viewed 8.2k times · Source

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.

Answer

cgat picture cgat · Jun 1, 2017

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