score:2

Accepted answer

the problem is with using categories: categories: yearmontharray, - when you use categories, then xaxis.type is set to category, not datetime.

so you have a couple of solutions:

  • use formatter for labels, there preprocess your category string to get desired output
  • change your format on backend side, to return categories formatter in a proper way
  • instead of using categories, use datetime axis. more about can be found here.

in genera, i advice to read about axes(!) in highcharts. the better you understand library, the better results you will have.


Related Query