Home forums Using CanvasJS Remove weekend days from chart

This topic contains 4 replies, has 2 voices, and was last updated by  Suyash Singh 2 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14964

    it
    Member

    Hi,

    I need to remove weekend days from this chart https://canvasjs.com/docs/charts/chart-types/html5-candle-stick-chart/

    Can you help me?

    #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

    #14996

    it
    Member

    Hi,

    Thanks.

    Do you have some full example?

    I use that for display currency values, so that chart also need to be live…

    #14999

    Suyash Singh
    Moderator

    @itadmin,

    Please have a look at this jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

    #17186

    Suyash Singh
    Moderator

    @itadmin,

    [update]

    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.
    ___
    Suyash Singh
    Team CanvasJS

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.