chartjs / chartjs/chartjs-plugin-annotation

TypeScript: ScaleValue should accept `Date` object

Open
#922 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.