2👍
In App.module.ts, on import zone , paste this line
import 'chartjs-plugin-annotation';
- [Chartjs]-Want to draw data using chartjs in django
- [Chartjs]-Can't generate multi-axis combo chart (bar/line) using chart.js 2.7
0👍
Add the line:
Chart.pluginService.register(annotation);
at the top of your ngInit()
function, that should do it.
Source:stackexchange.com