Can someone help me put the pie charts from chart.js in one row? I tried this, but it doesnt work.
`
<div >
<div >
<div >
<div style="position: right; height:40vh; width:40vw">
<canvas id="myChart"></canvas>
</div>
</div>
<div >
<div style="position: left; height:40vh; width:40vw">
<canvas id="myChart1"></canvas>
</div>
</div>
</div>
</div>
`
CodePudding user response:
Try this:
<html>
<body>
<canvas id="myCanvas"></canvas>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
CodePudding user response:
Check the below link. you can get a good idea from it about the pie charts chartjs