Simulator: X-axis labels are weird

I have noticed the x-axis labels are not so accurate at times. Take an example:

IMG-20241227-161819

Here, the dates don’t align with the graph. I did consider the possibility of next day starts at messing up with it but in my case, that is set to 5 hours after midnight.

This brings me to the next point, there should be no sub-day labels in the x-axis. If there is, now we’re not sure when the next day starts.

Another issue with these labels:

IMG-20241227-161003

In the first date it has the day of week, but in the next it has the month. This is rather unnecessary I think.

And the last and least is, text overlaps because of labels showing full month name (probably to show where the new month starts).

Screenshot-2024-12-27-01-38-25-21-a9eef3a2a561b80d5c76daebd0f9a14c

2 Likes

An optional count may be specified to affect how many ticks are generated. If count is not specified, it defaults to 10. The specified count is only a hint; the scale may return more or fewer values depending on the domain.

Yeah its a thing with D3 (Anki’s graph library). I don’t think there’s any way to strictly control how many ticks there are meaning that some ticks will always land on weird values.

Yeah the X scale is a little weird but it does get the job done. It would probably be more effort than its worth to fix since I doubt many people use very low simulation spans.

The ticks being the wrong value is a rounding error due to the ticks not being forced to land on the dates as far as I can see.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.