[Chartjs]-No rendered annotation line on Line Chart

1๐Ÿ‘

โœ…

As stated in the big red warning on the getting started page you need to register the plugin: https://www.chartjs.org/chartjs-plugin-annotation/guide/#getting-started

Instead of:

import 'chartjs-plugin-annotation';

Import and register the plugin like so:

import annotationPlugin from 'chartjs-plugin-annotation';

Chart.register(annotationPlugin);

Source: https://www.chartjs.org/chartjs-plugin-annotation/guide/integration.html#bundlers-webpack-rollup-etc

Leave a comment