hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
316 stars 111 forks source link

Only Show Plotted Variants #287

Open emmahodcroft opened 2 years ago

emmahodcroft commented 2 years ago

This is a minor thing, but bothers me sometimes now that in many places there are only 2-4 variants circulating...

Is it possible to only show variants in the mouse-over bar if they actually have a value at that time point? image

For example in the above, only 21K.Omicron through 20A/S:439K should show up on the mouseover. This just means that the 'total' number isn't pushed down so much by empty columns, and thus is easier to see on the page!

ivan-aksamentov commented 2 years ago

@emmahodcroft Check this related PR and my more general thoughts about rendering of the different types of values in the tooltips: https://github.com/hodcroftlab/covariants/pull/255#issuecomment-1006325326

We have yet another type not mentioned there - values that are present, but are disabled with checkboxes in the sidebar.

In order to resolve this, need to know how to handle all the different types.

emmahodcroft commented 2 years ago

Thank you for pointing this out! I must have completely missed this in the Christmas/post-Christmas (grant writing) mess! I'll respond there.