I have a data set aligned to start at midnight on the requested day (and end a few days later). I want to show X labels every 12 hours but they aren’t aligned well with the sample time. The first label is 10:00am not 00:00am. An easy example is showing the same data with interval set to 1 Day or 24 hours. See the fiddles below – when set to Hours it starts at 10:00am.
How can I influence the x axis label calculation so that they always start at the time of the first sample? (desired outcome – first label is 00:00 on the first day and then every 12 hours from there on).
Sorry to follow-up to my own post but I just thought of something that may be relevant. When setting the interval to hours the first tick is at 10:00 not 00:00. Our timezone is at GMT+10 so perhaps the hours based calculation isn’t accounting for the timezone offset?