Home forums Using CanvasJS automatic Y max/min

This topic contains 2 replies, has 2 voices, and was last updated by  Daniel Silva 2 years, 4 months ago.

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

    Daniel Silva
    Participant

    Hi,

    Sometimes when a chart has only values around 99.9 the min value of the Y axis is set as 0.
    Example,
    http://jsfiddle.net/dreamfalcon/pBxaa/
    In this case a min value of 99.8 would be great and I don’t want to set a min value, because the values could change in the future.

    Is this a bug or I’m doing something wrong?

    #6471

    Anjali
    Participant

    Hi,

    You can set axisY’s includeZero property to false in these cases in order to keep axis minimum closer to given y values. Here is the example on how to use includeZero

    Please let me know if this works for you.

    #6476

    Daniel Silva
    Participant

    Its working, thanks.

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

You must be logged in to reply to this topic.