chartjs / chartjs-plugin-annotation

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

Enable drawTime option as integer to relate the annotation drawing to a specific dataset drawing #889

Closed stockiNail closed 2 months ago

stockiNail commented 1 year ago

Fix #887

This PR enables the feature to draw an annotation before a specific dataset. This is implemented setting drawTime option as integer which is representing the dataset index. The annotation will draw always before the dataset specified by index. IF the index is not consistent (doesn't represent a valid dataset index) the annotation is not drawn.

drawTime

TODO

stockiNail commented 2 months ago

@LeeLenaleee I cannot merge because the checks are not available anymore and therefore the button is disable. I can switch to draft and again to ready for review in order to execute again the GHAs.