score:1

it looks like you can update the axes of your charts to a new default. so, using a modified form of their example, something like the following (modified to fit your code):

// ...
scales: {
    yaxes: [{
        display: false,
        gridlines: {
            display: false
        },
        ticks: {
            max: math.max(...data.datasets[0].data) + 20,
            min: -3, // added
            display: false,
            beginatzero: true
        }
    }],
// ...

... would do what you're looking for - with the side benefit that 0 and 3 wouldn't look like the same value, the relative bar size should stay accurate.


Related Query

More Query from same tag