chartjs-plugin-annotation
chartjs-plugin-annotation copied to clipboard
Enable drawTime option as integer to relate the annotation drawing to a specific dataset drawing
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.
TODO
- [x] test cases
- [x] types
- [x] documentation