score:0

i found a way around it. i put the canvas tag inside a div container with a fixed height. here is the code:

<div class="container" style="width: 300px;">
  <canvas id="mychart"></canvas>
</div>


Related Query

More Query from same tag