Home forums Using CanvasJS Remove weekend days from chart

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

Viewing 4 posts - 1 through 4 (of 4 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

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

You must be logged in to reply to this topic.