I was having some problem with chart.js legend. The legend with long text took up too much spaces which resulting in the reduce in the size of my pie chart:
Another
I bumped into a similar issue while using a bar chart with several items in legend positioned at the bottom, I set responsive:true
options: {
responsive: true,
legend: {
display: true,
position: "bottom",
labels: {
fontColor: "#3f5761"
}
},
scales: {
yAxes: [
{
ticks: {
beginAtZero: true
},
scaleLabel: {
display: true,
labelString: "No. of tasks",
fontSize: 10
}
}
]
}
}
and set the height to the canvas as I wanted the width to be responsive. It looks better now.