Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: display at least 2 significant digits (when hovering on data point) #51

Closed
ernest-tg opened this issue Jul 13, 2020 · 2 comments

Comments

@ernest-tg
Copy link

When I monitor the deaths in the European Union, normalized by population, it is hard to see if it's going up or down. The average has been 0.2 for the last few weeks. But that could be anything from 0.151 to 0.249. So, a constant number could hide the fact that deaths halved or doubled in the last few weeks.

The more successful a country, the more noticeable the problem: for Japan, the graph says 0 deaths/1m inhabitant even though it's non-zero (closer to 0.001).

@wadefagen
Copy link
Owner

Fantastic suggestion -- thank you! 🎉

I've modified the mouseover code to inspect the numbers and give an appropriate number of decimal places based on the magnitude of the data. This will be out as part of the next release (later tonight or early tomorrow)! :)

@ernest-tg
Copy link
Author

Awesome! Thanks for doing it so quickly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants