Chartjs-Chart js plugin annotation not working in vue

0👍

You are trying to use v3 syntax while using v2, to register plugins in V2 you need to type it like so:

import AnnotationPlugin from 'chartjs-plugin-annotation';

Chart.plugins.register(AnnotationPlugin)

Leave a comment