blab / nextflu

Real-time tracking of influenza evolution
http://nextflu.org
GNU Affero General Public License v3.0
88 stars 19 forks source link

Include coloring by date in nextflu #92

Closed trvrb closed 9 years ago

trvrb commented 9 years ago

This works a bit differently than in mutation_tree. Here, it shows date relative to current date in the date slider.

rneher commented 9 years ago

great. but I am a little unhappy with the legend. I think it would be more informative if it showed dates as in 2014.5. For this, we could simply color by num_date and adjust the domain of dateColorScale with clamp=true and appropriate rounding.

in general I was going to convert all domains into smth like

var genericDomain = [0,....1] var epiDomain = genericDomain.map(function (d) {return 3 + 10*d;}) var nonepiDomain = genericDomain.map(function (d) {return 0 + 7*d;}) etc... such that one can simply adjust min and max for each domain without having to type 11 numbers.

trvrb commented 9 years ago

I didn't like having blue = 2012 and red = 2015 for H3N2. Couldn't see pretty much any differences between sampled viruses. This is why I went to the 1 year window.