26👍
try this in chart’s option confirg
options = {
maintainAspectRatio : false
}
9👍
Try to set height of canvas inline:
<div style="height: 168px">
<canvas id="chart-area" height="168px"/>
</div>
- [Chartjs]-Chart,js Pie Chart can the gap between a pie chart and the legend be adjusted
- [Chartjs]-Chart.js, change color of specific ticks
Source:stackexchange.com