FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Suggested Maximum Height #468

Closed TyraelElDruin closed 7 years ago

TyraelElDruin commented 7 years ago

Hi, I have a question that I can't find an answer for in the documentation or by perusing the internet.

Is there an equivalent function to Chart.js suggestedMax?

I want to use the dynamic scale as the minimum regularly changes, but the maximum is always 100.

If all of the values are 100 however, it sets the maximum to 120 creating a weird looking graph.

Is there a way for me to force a maximum value while keeping the minimum value dynamic?

averagesissue

FVANCOP commented 7 years ago

graphMax and graphMin are two options that you can set for your chart. In your case, you will have to set graphMax to 100.

See https://github.com/FVANCOP/ChartNew.js/wiki/100_070_Charts_Layout#graphmax and https://github.com/FVANCOP/ChartNew.js/wiki/100_070_Charts_Layout#graphmin

TyraelElDruin commented 7 years ago

Awesome - thanks so much for your reply. It works

Sorry I couldn't find that on my own!