Chartjs-Adjust length of y-axis using chart.js and bootstrap

0👍

The solution was to set this attribute of the options-object for the chart:

maintainAspectRatio: false

Then I could adjust the height like:

.chart-container {
    position: relative;
    height: 65vh;
}

Leave a comment