1👍
✅
You are using V3+ of chart.js while using V2 syntax.
In V3 the title and legend got moved to the plugins
namespace inside of the options.
You can read the V3 migration guide for all breaking changes
Source:stackexchange.com