-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Improve automatic bracketing in maps to be usable #3640
Comments
Additional context: This document outlines the binning strategies that ArcGIS provides (thanks Fiona!). |
Thanks for writing this up, @paarriagadap. Creating map brackets is a big pain! I've created a separate issue with a proposed implementation of how to improve the current tool in the chart admin. The current issue can be about deciding the optimal strategy (which I think can be harder to figure out). But for explorers, there's no grapher admin tool, and I think we are from having one, so I've created this separate ETL issue to have something useful with streamlit. |
We talked about this today in data viz triage and yesterday in the data meeting and there is a good chance that @pabloarosado has time in his upcoming cycle to tackle this problem on the python side and come up with a good algorithm that comes close to our guilelines. Once this is done it should not be too much work to reimplement this in grapher. |
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
Quantiles strategy
Ckmeans strategy
We would like in this example that the brackets suggested would be something closer to
Additional context
The text was updated successfully, but these errors were encountered: