You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
In graph view, the vertical line that gives the date and the value does not line up correctly with the tic marks and labels on the x axis. This can be seen in graphs for relatively short time periods (e.g. 100 years).
The text was updated successfully, but these errors were encountered:
Looks like whenever I use precise x-axis ticks (by giving a count or a list of x values), the mis-alignment happens. My guess is the problem is caused by rounding precise date values to years, e.g. the position of the tick is April 20th, 1200 but the label displayed is 1200 (due to the format).
To deal with this we'd need some complex algorithm that carefully picks x values, instead of simply dividing range by tick count. This algorithm needs to handle ranges over 1k years, 100 years, 10 years, within 1 year (with monthly data) and maybe even smaller ranges.
An edge case the algorithm needs to handle:
If there are 6 years in the range, and there is only space for 5 labeled tick marks, which one does it through away?
From @kintigh:
The text was updated successfully, but these errors were encountered: