Home forums Using CanvasJS Irregular intervals

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24144

    Hi,

    is there a way to print irregular intervals on axysY? for example, axys start on 0, next tick on 50, next 100 next 200 and then 400 without use customBreaks, because in this way, the space between ticks are the same:
    customBreaks: [{
    startValue: 0,
    endValue: 49,
    type: “line”
    },
    {
    startValue: 51,
    endValue: 99,
    type: “line”
    },
    {
    startValue: 101,
    endValue: 199,
    type: “line”
    },
    {
    startValue: 201,
    endValue: 399,
    type: “line”
    }
    ]}

    Thanks, best regards.

    #24153

    @meneillos,

    You can achieve the above requirement by using stripLines at desired points on the Axis Y as shown in this JSfiddle.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24167

    Thanks, that is what i was looking for.

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

You must be logged in to reply to this topic.