miwi
Posts: 11
Joined: Sun Jun 07, 2020 8:36 am

Format xaxis

How can I format the X-axis so that the date values are displayed horizontally together?

https://jsfiddle.net/r7e5bugm/2/

Like here for example:

https://jsfiddle.net/4r625shw/
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Format xaxis

Hello,

Thanks for contacting us with your question!

If you use dates, instead of setting them as categories, you should pass them with data like in this demo. But first, you have to parse them to milliseconds.

Demo: https://jsfiddle.net/BlackLabel/37295qru/

Let me know if that was what you were looking for!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
miwi
Posts: 11
Joined: Sun Jun 07, 2020 8:36 am

Re: Format xaxis

Thank you, WORKS!

:D
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Format xaxis

You're welcome!

Feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”