uwdata / vsup

Code for generating Value-Suppressing Uncertainty Palettes for use in D3 charts.
https://uwdata.github.io/vsup/
MIT License
77 stars 6 forks source link

Legends aren't drawing correctly for differing layers #2

Closed mcorrell closed 6 years ago

mcorrell commented 6 years ago

If you make a VSUP with e.g. 3 layers and a branching factor of 2, it will create the right scale, but will show an incorrect legend (there's an "off by one" error in the uncertainty values). I believe this is due to rounding issues, but I could be wrong. screen shot 2018-04-17 at 5 05 08 pm

mcorrell commented 6 years ago

c.f. screen shot 2018-04-17 at 5 07 35 pm