Home forums Using CanvasJS AxisY minimum value not working

Tagged: 

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24049

    Hi everyone,

    I’ve setting minimum value in my axisY structure but the respective dataPoint is not being rendered. Why?

    Follows a fiddle of my issue:
    https://jsfiddle.net/guilhermemaranhao/y54gbefn/16/

    Why dataPoint { y: 1, label: “3”} is not being shown?

    Did I miss anything or have I set something that is disabling it?

    Thank you,

    Guilherme

    #24054

    @guilhermemaranhao,

    As the dataPoint y-value is small compared to other y-values, the height of that specific dataPoint becomes smaller and may become less than 1px height. Because of this behavior, you can’t see the dataPoint with y-value 1. We will improve this behavior in our future releases.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24059

    Thank you!

    But isn’t it at least a workaround that I could do to solve it

    Regards

    #24062

    For example, @shashi, is it possible, just before rendering, to get the dataPoint pixel? If so, I could “increase” the y-value a little bit, so that it could be shown. Of course, it’s far from ideal, but at least, I could have my dataPoint visible in my chart.

    Thank you

    #24083

    @guilhermemaranhao,

    Yes, it is possible by substantially increasing the value of smallest DataPoint of the DataSeries as shown in this JSFiddle.

    ____
    Shashi Ranjan
    Team CanvasJS

    #24088

    Great, @shashi! It worked perfectly!

    Thank you very much!

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

You must be logged in to reply to this topic.