How to display all the text labels of ECharts axis?

Problem description : When the axis text label is long, ECharts will hide the content that cannot be displayed by default.

Solution: xAxis: { 
                        axisLabel: {//xAxis, yAxis, axis all have axisLabel attribute objects 
                        show: true, //the default is true, after setting it to false, the following has no meaning  interval: 0, //the key here, Set all text labels to display                         rotate: 45, //Label rotation angle, for long text labels, set rotation to avoid text overlap                          formatter: function() {//Text label formatting                                                  return "formatted text"; 
                         



                                            } 

                            }

Guess you like

Origin blog.csdn.net/qq_34050399/article/details/80718900