Home forums Using CanvasJS "Zero-ing" primary and seconday axes

This topic contains 2 replies, has 2 voices, and was last updated by  mjhannaf 2 years, 10 months ago.

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

    mjhannaf
    Participant

    Is there a way to make the 0 tick marks line up for both axes? For example, I might have all positive values for one axis (Hours worked), but a negative value for one or more of the other axis (Net revenue). I would like to “zero” tick mark to line up for both axes. Is this possible?

    Fiddle example: http://jsfiddle.net/QwZuf/27/

    #5682

    Sunil Urs
    Keymaster

    In that case you’ll have to explicitly set interval, minimum & maximum values of axisY and axisY2 such that 0 is in sync. Here is an example.


    Sunil Urs

    #5688

    mjhannaf
    Participant

    Ok, thank you.

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

You must be logged in to reply to this topic.