chartjs / chartjs-plugin-annotation

Annotation plugin for Chart.js
MIT License
609 stars 329 forks source link

Change display to enabled at label options #769

Closed rafaelmarreca closed 2 years ago

rafaelmarreca commented 2 years ago

The property display doesn't exists, the correct property is enabled

LeeLenaleee commented 2 years ago

Current docs are correct. The docs in master are for the upcomming V2 release and not the current V1. In the migration guide thats also in master this is stated:

enabled option was replaced by display in the callout configuration of label annotation, in the label configuration of line and box annotations and in the arrow heads configuration of line annotation to have the same option on all elements.