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

Improve automatic bracketing in maps to be usable

Open paarriagadap opened this issue 9 months ago • 4 comments

Description

Improve the automatically generated map brackets to have a meaningful, usable option that don't involve manual processing every time. This is especially critical in large explorers (indicator-based or csv-based) or when we need to generate multiple charts for a Grapher ID-based explorer.

Expected behaviour

The system should not generate very specific brackets (see pictures below), but rounded, sensible options in the range of the full data (all the years) and following our map bracket guidelines.

Screenshots

For the indicator share in extreme poverty, this is the default behaviour: Equal-interval strategy share-of-population-living-in-extreme-poverty (3)

Quantiles strategy share-of-population-living-in-extreme-poverty (2)

Ckmeans strategy share-of-population-living-in-extreme-poverty (1)

We would like in this example that the brackets suggested would be something closer to share-of-population-in-extreme-poverty (10)

Additional context

paarriagadap avatar May 23 '24 09:05 paarriagadap