Tough to read years from the main plot when showing multiple years. #181
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
When plotting the downloads for a package over multiple years we have a
'MMM d'
format as the label for the x-axis and the same for the tooltip title when hovering over a specific data-point. This can make it tough to read which year a specific data point is for.Solutions
Simple solution
The most simple solution that would require minimal changes would be to set the title of the tooltip explicitly to include the year.
This can be done here in packages.ts by adding a title property. This keeps the plot simple on the surface but makes it possible to inspect the full date if you can't figure out the year.
Less simple solution
Have the x-axis labels depend on whether or not we are plotting for 1 year or more. I can't figure out specifically where this should be done but should be doable with more changes to the packages.ts code. I'm not sure how pretty this will be code-quality-wise.
The text was updated successfully, but these errors were encountered: