Home › forums › Using CanvasJS › Dynamic maximum for axisY
Without setting axisY maximum, my chart looks like this:
I don’t like the unnecessary white space between 100 and 150. But my chart values are dynamic based on user selection, so if maximum is set to 100 and the user only selects the first column, it looks like this:
Is there a way to set maximum to 100, ONLY if the values reach 100?
axisY maximum value is auto-calculated based on the range of dataPoints present in the viewport. But when you try to set the axisY maximum/minimum value manually, the value gets fixed irrespective of any range of dataPoints present in the viewport.
You must be logged in to reply to this topic.