Home › forums › Using CanvasJS › min max values on XY plot
Tagged: max, min, striplines, widget, XYplot
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?
This is the jsfiddle output:
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
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.
You must be logged in to reply to this topic.