Chartjs-How to install plugin for chartjs in javascript

1👍

Maybe annotation.js is not in the same directory as the HTML file.

Try

<script src="path/to/annotation.js"></script>

Example

<script src="/wp-content/themes/Total/assets/js/chartjs-plugin-annotation-master/src/annotation.js"></script>

Also

var charts_plugin = chartjs-plugin-annotation.js;

Try changing this line to
var charts_plugin = path/to/annotation.js;

Leave a comment