chartjs / chartjs/chartjs-plugin-annotation
TypeScript: ScaleValue should accept `Date` object
Open
enhancement
types
- Dominant language
- JavaScript
- Stars
- 623
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Description
Currently, `ScaleValue` is defined as `string | number`, which is not compatible with the [time axis](https://www.chartjs.org/docs/latest/axes/cartesian/time.html). It should at least support the `Date` object, and ideally, it would also support other date objects listed at [Chart.js Awesome](https://github.com/chartjs/awesome#adapters).
Contributor guide
Assessment
This issue has not been assessed yet.