owid-grapher icon indicating copy to clipboard operation
owid-grapher copied to clipboard

Add center value for diverging map brackets

Open paarriagadap opened this issue 1 year ago • 2 comments

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

paarriagadap avatar Apr 28 '23 08:04 paarriagadap