[Chartjs]-Chart annotations not showing in Angular 2

2👍

In App.module.ts, on import zone , paste this line
import 'chartjs-plugin-annotation';

0👍

Add the line:

Chart.pluginService.register(annotation);

at the top of your ngInit() function, that should do it.

Leave a comment