score:3

Accepted answer

i think you could try something like in the example i made here: https://stackblitz.com/edit/react-boilerplate-scalabw-45793890

you can use the max in the scales: { yaxes : [{max: maxvalue}] }

you just need to add a function which get the maximum value and add the "padding value".

i also simplified you code in my example because you got a repetition between yaxes and yaxes.


Related Query

More Query from same tag