blab / nextflu

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

auspice: use `node.attr.div` as xvalue for divergence tree #154

Open joverlee521 opened 3 years ago

joverlee521 commented 3 years ago

The augur export v1 tree JSONs are not guaranteed to have the xvalue attribute. This can lead to NaN values that cause errors in the D3 transformations for the divergence tree view.

This commit changes the divergence tree to use the node.attr.div attribute as the x value.