Home Forums Chart Support Secondary Axis and negative values

Secondary Axis and negative values

Viewing 2 posts - 1 through 2 (of 2 total)
  • #60511

    If I have negative values in a chart with a secondary axis, then the Y Axis do not align at 0

    Is there a way to fix this?

    https://jsfiddle.net/mx74fkvg/

    #60520

    @mrdavid,

    It is not possible to align the axes, as their minimum and maximum values are independent of each other. However, for your particular scenario you can set the maximum and minimum properties of Axis Y according to that of Axis Y2. Please take a look at this JSFiddle for an example of the same.


    Ananya Deka
    Team CanvasJS

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

You must be logged in to reply to this topic.