Home forums Using CanvasJS a question about dateTime axisX Reply To: a question about dateTime axisX

#5638

Sunil Urs
Keymaster

When you set date-time values to “x” it is not possible to skip weekends and holidays. Axis behaves linearly across the date range.

In cases where you want to show only working days, then its better to use “label” instead of “x”. But it requires you to format the date/time into required string format before assigning. You can use libraries like momentjs to do the same. Here is a page on label


Sunil Urs