# 3.x Migration Guide

chartjs-plugin-annotation plugin version 3 becomes an ESM-only package (opens new window). The UMD bundle is still available.

# Chart.js version

The annotation plugin requires at least version 4.0.0 to work because of Chart.js becomes an ESM-only package.

# Type changes

  • The init options callback return value types have been changed from void | boolean | AnnotationBoxModel to void | boolean | AnnotationElement.
Last Updated: 5/15/2023, 12:03:46 PM