Accepted answer

You can use minRange instead of max, as this will give the y-axis a small span when all values are 0, but adjust accordingly when larger values appear.

For example:

    min: 0,
    minRange: 2

See this JSFiddle demonstration of how it adapts to updated points with larger values.


It's only like that because all your data is 0. Changing any of those values fixes your graph

Related Query

More Query from same tag