Chartjs-Responsive Chart.js Canvas barplot height?

0👍

Your chart doesn’t know how big it should be. You should add a height-property to the div that contains your canvas.

<div class="chart" style="height: 300px">
  <canvas id="barChart" width="100%" height="100%"></canvas>
</div>

Leave a comment