Closed benjaminle9x closed 3 years ago
i want the same feature
In your <HorizontalAxis />
component you can use a label formatter like this:
<HorizontalAxis theme={{
labels: { formatter: (v) => moment(v).format("H:mm") },
}} />
I use Moment.js
for formatting but you can use anything you want!
Like BlackWild explained, use any date lib to format your value to a date :)
How do I set the horizontal axis to be in time (E.g hh:mm)?