Chart.js annotation plugin not working
Chart.js Annotation Plugin Not Working. However, the typescript declaration file does not allow for adding arbitrary values to chart.chartoptions, it seems to support the options.plugins.annotation way despite this not working at runtime. An annotation plugin for chart.js >= 3.0.0.
So instead of options.plugins.annotation you can try to use options.annotation. Annotations will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts. However, the typescript declaration file does not allow for adding arbitrary values to chart.chartoptions, it seems to support the options.plugins.annotation way despite this not working at runtime.
2 Chart.js annotation plugin not working
Hot Network Questions What Is A Single Word That Describes (Excessive) Human Desire For External Validation (I.e., Popularity)?
An annotation plugin for chart.js >= 3.0.0. The chart.js annotations plugin is not behaving as expected in my wordpress template.
Annotations Work With Line, Bar, Scatter And Bubble Charts That Use Linear, Logarithmic, Time, Or Category Scales.
So instead of options.plugins.annotation you can try to use options.annotation. This plugin draws lines, boxes, points and ellipses on the chart area.
(3.4.1), Annotations Started Working Again Whew!
Chart js plugin annotation not working in vue. Chartjs 3 how to draw a horizontal line starting at a specific yaxis value.
The Chart Renders Fine But The Annotations Just Don't Appear.
However, the typescript declaration file does not allow for adding arbitrary values to chart.chartoptions, it seems to support the options.plugins.annotation way despite this not working at runtime. Annotations will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts.