Chartjs-Chartjs Add-Ons

1👍

There are some nice and ready-to-use plug-ins available for drawing rectangles on top of your chart. Maybe this one could help you out:

Code pen example

See the Annotation part in the Chart options:

annotation { annotations: [ ... ] {

GitHub source:
https://github.com/chartjs/chartjs-plugin-annotation

Leave a comment