How to define a specific interval in time series of a day #3324
-
Hi, I've some measurement values collecting over the day and I want to display them with a recharts bar graph between 00:00 - 23:59 for the whole day. I want to have 5 intervals in my chart: 00:00, 06:00, 12:00, 18:00 and 23:59. The sample data:
The interval is not working or let's say recharts is doing some strange interval based on the data given and the intervals shown are not equal the number I give.
Is it possible in rechart to show these intervals? Thanks and Best |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can define
https://codesandbox.io/s/even-distribution-ne5d8d-forked-4y0occ?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
You can define
ticks
yourself if you want like this:https://codesandbox.io/s/even-distribution-ne5d8d-forked-4y0occ?file=/src/App.js