1π
β
The title property does not take a string for the options. Instead it takes an object where you can configure things about the title including the string.
So your config will look like this:
options: {
title:{
display: true,
text: 'TitleText to display'
}
}
Documentation: https://www.chartjs.org/docs/2.9.4/configuration/title.html
Source:stackexchange.com