Home Forums Chart Support Reversed chart & axisY

Reversed chart & axisY

Viewing 4 posts - 1 through 4 (of 4 total)
  • #45717

    Hello,

    I have a dataset like [{label:”1″,y:2},{label:”2″,y:4},{label:”3″,y:1},{label:”4″,y:2}]
    I’d like to create a reversed chart with the top Y line set to 1 (as it is the minimum possible value for Y in my case).
    And if possible with an interval = 2 on Y axis (so 1, 3, 5, etc.).

    I’m using the following but it is not exactly what I’d like:

    axisY:{
       reversed: true,
       interval: 2,
       minimum: 1,
       includeZero: true
    }

    Could you please help me with this?

    #45720

    Adding the corresponding code: https://jsfiddle.net/qwdbxu84/

    #45756

    @motogp,

    Control over starting point of axis labels is not available as of now. You can work around this by removing the default axis labels & gridlines along with adding stripLines to show them at an interval of 2.
    Please take a look at this JSFiddle for a working example of the same.

    Custom Axis-Y Interval

    __
    Sachin Bisht
    Team CanvasJS

    #45762

    Thank you very much!

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

You must be logged in to reply to this topic.