score: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)
Source: stackoverflow.com
Related Query
- Chart js plugin annotation not working in vue
- Annotation plugin not working with Chart.js 2.8.0
- Time Series Line chart js in react not working
- Annotation events not update the chart
- Click event of stacked line chart not working
- ChartJS - radar chart options not working
- Bubble Chart in Chartjs not working
- annotation line not visible in scatter chart in chartjs
- Css style not working well when resizing chart height in angular application
- code works fine on jsfiddle but one function is not working on website
- Chartjs not working with d3 from csv source
- Error: "barWithErrorBars" is not a chart type. Vue - chartjs-chart-error-bars
- in chart js tooltip font size is not working
- Chart JS not working with date
- ChartJS not working in Vue
- Background color of the chart area in chartjs not working
- Chartjs with Vue, Bar Chart Border Radius not working
- Chart.js bubble chart pointStyle not working
- Charts.js - Colors for stacked bar on multi-series line/bar chart are not working
- Charts.js - Bar chart different colors for value intervals not working
- Ng2-charts crosshair plugin not working in Angular
- Chart JS not working with Phonegap
- Can't Draw Horizontal Line on Graph Using ChartJS Annotation Plugin and Primevue Chart
- Legend color not working with randomly generated background colors in chartjs pie chart
- Vertical align bar chart from chart.js not working
- chart js download to png with canvas.toDataURL() not working in IE and firefox
- vue-chartjs not working properly in flexbox and when resize chart goes blank
- chart.js legend not working for pie chart
- Chart JS not working with Dynamic Data
- ChartJS autoskip:False not working on line chart
More Query from same tag
- How can I hide legend text if it's zero?
- Chart.js Line, different fill color for negative point
- Chart.js tooltipTemplate not working
- Fix ChartJS Values not Well Displayed
- How can make my chart.js dynamic using data from database
- Chart JS, ng2-Charts - How to make the label to the right of pie chart instead on top?
- Synchronizing zoom between multiple charts
- Chart Js reduce text size for label on X axis
- Pie Chart using chart.js not showing up but bar charts are?
- Updating data in chart.js
- Chart.js data values from textbox input only load once
- How to display grid lines (without showing label) between each ticks?
- Angular chart.js chart scale
- Wrong tootip in chartjs
- Plot lap times with Chart.js from time strings
- Rest api / json error while using it with react chartjs
- Chartjs 2 scaling lots of data points
- ChartJs Stacked Bar Chart
- Change point color on click using ChartJS
- How to make bar shape like bell curve in angular-chart?
- how can i reset chartjs object all instances and recreate it from scratch?
- Chart.js sciptable options: accessing the values of the data object?
- "this" doesn't work in click event handler
- How to set the pointDot option on combo stacked bar-line chart
- How to create stacked bar chart using react-chartjs-2?
- Chart.js: Fill background between two lines
- Charts.js v2: always show custom (html) tooltips on chart
- How to change bar color acording to label value in chartjs
- chartjs bar chart filter using datetimepicker
- Chart.js data not initially loaded