Home › forums › Using CanvasJS › Remove weekend days from chart
I need to remove weekend days from this chart https://canvasjs.com/docs/charts/chart-types/html5-candle-stick-chart/
Can you help me?
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.
Do you have some full example?
I use that for display currency values, so that chart also need to be live…
Please have a look at this jsfiddle.
We have just released v2.0 GA with axis scale-breaks, 5 new chart types & several other features. Please refer the release blog for more information & let us know your feedback.
We have just released v2.0 Beta 1 with axis scale-breaks, new chart-types, crosshair, and new themes. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.
You must be logged in to reply to this topic.