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

Add center value for diverging map brackets #2166

Open
Tracked by #3561
paarriagadap opened this issue Apr 28, 2023 · 2 comments
Open
Tracked by #3561

Add center value for diverging map brackets #2166

paarriagadap opened this issue Apr 28, 2023 · 2 comments

Comments

@paarriagadap
Copy link

Core problem

When using a diverging scale for a map, Grapher automatically defines a center value (where colors change) which doesn't necessarily reflect how the measure works.

Proposed solution

Adding a "center value" field into Grapher can fix this, expressing exactly where we want this transition point to happen.

Alternatives

The alternative, for now, is creating a symmetric range where the midpoint is exactly this transition point, but that generates brackets that do not cover the values as we might like.

Context

See original post in Slack.
In this example, I would like the colors to start changing (from red to blue) from 0 and not from 4:
image

The alternatives to fix this would be to create symmetrical brackets, as
lgbt-policy-index (1)
lgbt-policy-index (2)
... which is not ideal.

There are tools like Tableau that include this kind of functionality:
image

@sophiamersmann
Copy link
Member

Zero seems to be commonly used as the center value, but there are also other cases where centering around 1 or 50 makes sense (as mentioned by Ed on Slack):

@danyx23
Copy link
Contributor

danyx23 commented May 15, 2024

Since #3488 requests another version of this feature we are bumping this one up in priority

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

Successfully merging a pull request may close this issue.

4 participants