Chartjs-Chartjs-plugin-annotation won't draw anything

0👍

I had made a dumb mistake of including both Chart.min.js and then later on Chart.bundle.min.js also.

So something like this:

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-annotation/0.5.7/chartjs-plugin-annotation.min.js"></script>

...other code...


<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js"></script>

Deleting this later Chart.bundle.min.js solved the problem.

Leave a comment