-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Support negative rounding and rounding by significant figures #1851
Comments
This will probably be a matter of adding a new bit of config and adjusting |
For the record, I've done a small analysis on the possibility of changing from 2 to 1 decimal digits. The conclusion is that we shouldn't do it without going case by case. |
This came up in discussion again just today around CO2 data for COP 28. |
Reduced prio -- it shouldn't block today's work, but it's something we obviously really really would like. |
This issue has a lot of relevant discussion on the data side that should be checked out in detail to get this to be ready to work on: https://github.com/owid/owid-issues/issues/918 One rabbit hole to figure out is how to combine this with the currently existing decimal points setting that we can use to limit the digits after the decimal point. To some degree this could be seen as redundant if we have significant figures but if we were to combine these it would mean doing a big migration that would involve a lot of manual work. Sizing this issue properly will have to wait until we know more exactly what we want to do. |
@danyx23 To secure agreement on the next step here. |
Just to document my current understanding of how we should tackle this (before chatting with Ed and Pablo R tomorrow) - I think we should:
|
I discussed this with Pablo R and Ed today. These were some additional findings:
|
Overview
Rounding is a helpful strategy to reduce visual clutter and indicate true rather than false precision in our numbers.
Today, Grapher only allows you to round decimal places, e.g. a rounding level of 1 rounds
1.23423
to1.2
. In the past we supported negative rounding, but that has been broken for ~1y (as of Oct 2023).Proposal
The research and data team would love two things to improve their data communication:
12341
into12000
Examples
Technical notes
Related discussions
The text was updated successfully, but these errors were encountered: