Chartjs-React-chartjs-2 bar touches the top

3👍

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.

Leave a comment