echartsapache-echarts

Echarts: How to display last label of xAxis?


How to show the last tick label of xAxis?

Screenshot: chart image


Solution

  • Use the following configuration option:

    xAxis: {
      axisLabel: { showMaxLabel: true },
      ...
    }