Line chart and unevenly spaced points in time
Posted: Tue Apr 02, 2024 5:08 pm
We are using line chart.
The main markers (major ticks) on the X-axis (representing time) should indicate whole hours. How to achieve this ? Data coming from the backend does not contain points with full hours and does not represent equally spaced points in time.
For better illustration we want the X axis to be described as follows, for example (hours and minutes): 7:00, 8:00, 9:00,....,18:00, 19:00, or 7:15, 7:30, 8:00,...,18:45, 19:00 - for pl-PL language and 7:00 AM, 8:00 AM, 9:00 AM ,...., 6:00 PM, 7:00 PM, or 7:15 AM, 7:30 AM, 8:00 AM ,..., 6:45 PM, 7:00 PM for en-EN language regardless of the time value of points coming from the backend.
The main markers (major ticks) on the X-axis (representing time) should indicate whole hours. How to achieve this ? Data coming from the backend does not contain points with full hours and does not represent equally spaced points in time.
For better illustration we want the X axis to be described as follows, for example (hours and minutes): 7:00, 8:00, 9:00,....,18:00, 19:00, or 7:15, 7:30, 8:00,...,18:45, 19:00 - for pl-PL language and 7:00 AM, 8:00 AM, 9:00 AM ,...., 6:00 PM, 7:00 PM, or 7:15 AM, 7:30 AM, 8:00 AM ,..., 6:45 PM, 7:00 PM for en-EN language regardless of the time value of points coming from the backend.