Home forums Using CanvasJS min max values on XY plot

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

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

    Hi,
    I need to show minimum and maximum values on XY plot if the values not divided by interval.
    Ex: The maximum is 45 and interval is 10. We should show 45 as maximum. Now it shows 40.
    There is a workaround with striplines. But it causes the values collide on top.

    Does anybody help to figure out the issue?

    #25636

    This is the jsfiddle output:
    https://jsfiddle.net/260yw3oh/

    As you see, max value is bold and if max value is 1000 and interval is 200.. There is an overlap and format goes wrong

    #25659

    @a_scene,

    When the axis-y maximum is set to 45 and its interval is set to 10, the axis label will not be shown at value 45. Also, if the stripLine value is the same as the actual maximum value of the axis, it overlaps with the axis label because of which it looks bold. To avoid making it look bold, you can ignore adding stripLines and set axis-y maximum as a multiple of its interval.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.