Home forums Using CanvasJS Remove weekend days from chart Reply To: Remove weekend days from chart

#14971

Suyash Singh
Moderator

@itadmin,

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 the formatDate() to do the same. Here is a page on label.

___
Suyash Singh
Team CanvasJS