0👍
This issue you have here is that chartJS will ignore the width / height on the canvas element, so you need to wrap the canvas element in a div…..
<div style="width:400px;height:600px">
<canvas id="myChart"></canvas>
</div>
- Chartjs-Is it possible with Chart js or which chart Library can provide this type of chart?
- Chartjs-Center origin of a Scatter Chart
Source:stackexchange.com