2👍
you should set Align to (start or center or end) for title:
const options = {
responsive: true,
plugins: {
title: {
display: true,
color:'#8b93a2',
align:'start',
position:'top',
text: 'Chart title',
},
},
};
- [Chartjs]-Grouping the object by key for Chartjs bar chart
- [Chartjs]-How to vary the thickness of doughnut chart, using ChartJs.?
0👍
According to documentation from chart.js documentation page
Only top,left,right and bottom are available.
- [Chartjs]-Changing style of individual point Chart.js
- [Chartjs]-How to add an offset to a dataset in Chart js
Source:stackexchange.com