My chat.js title is configured as:
new Chart(document.getElementById(z).getContext('2d'), {
type: 'doughnut',
data: {
datasets: [{
backgroundColor: $scope.bgColor,
data: [
some stuff
]
}],
labels: [some stuff],
},
options: {
title: {
display: true,
text: ['Title Line One', 'Title Line Two']
},
cutoutPercentage: 80,
hover: {mode: null},
elements: {
center: {
text: [
some stuff ],
color: '#FF6384', // Default is #000000
fontStyle: 'Arial', // Default is Arial
}
},
legend: {
display: false
},
}
});
However, the title is not appearing in two lines as expected. The documentation here suggests that providing an array input should result in a multiline title, but this is not working correctly.