Open SRGDamia1 opened 2 years ago
Part of #551
@SRGDamia1, I agree that having at least one date at the lowest zoom level would be helpful. However, I also see these as relatively low priority enhancements, given our continued urgent need to do some major code refactoring to address tech debt.
@ptomasula, how easy is it to change this behavior?
Also, no year is available on x-axis display or when hovering - problematic for general inspection of data, etc.
@aufdenkampe @SRGDamia1 This data formatting was implemented in commit 20ed2b7 and is now live on the staging server.
However, fully specifying the 'MM-DD-YYYY' for lower zoom levels (where only a few days or even hours are displayed) can lead to the labels overlapping which makes the plot less useful.
I'm looking for feedback on how best to resolve that. A few initial approaches could include:
Isn't the spacing between ticks dynamic?
Isn't the spacing between ticks dynamic?
Correct that tick marks are dynamically generated, but we have control over the scaling factor that is used.
Ok. "Not overlapping" is most important - if the text overlaps it looks like an error no matter what.
For now, with the year properly in the hover, it would be better to go back to the default ticks that will not overlap and to put finer tuning them as a low priority item.
Depending on the zoom level, the date is formatted differently. It should be more consistent. At all zoom levels, the date should be displayed with numbers (ie, always "04/21/2021", never "Apr-21". The date should also always appear at least once on the plot, even at the tightest zoom level.
Last year:
Last month:
Tighter zooms:
< 1 day, date is not displayed at all: