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

Idea: Provide filter dropdown in entity selector #3599

Open
marcelgerber opened this issue May 9, 2024 · 2 comments
Open

Idea: Provide filter dropdown in entity selector #3599

marcelgerber opened this issue May 9, 2024 · 2 comments

Comments

@marcelgerber
Copy link
Member

Core problem

It is currently hard to discover the different kinds of entities available in a chart.
For example, it is unclear at first sight that "special" entites and groupings like "Africa", "World", "Upper-middle income countries" are all part of the entity selector.

We have some of this information readily available in https://github.com/owid/owid-grapher/blob/104ca296e72a8222d184618c6f0d2eb3aba98376/packages/%40ourworldindata/utils/src/regions.json (although this information is arguably imperfect, as it doesn't include all historical countries, or groupings like Africa (FAO) - but we can strive to improve on that front!).

Proposed solution

One option would be to provide a dropdown in the entity selector, where the user can filter for the entity types they want to see, e.g.

Group name Example
Countries Zimbabwe
Historical countries & regions Austria-Hungary
Continents Asia
Income groups Low-income countries
Regions & groupings [other than continents & income groups] Americas (FAO), Asia (excl. China & India), European Union (27), World
Others International aviation, Eggs, BloombergGPT

Multi-select would probably be allowed in that dropdown.

Additional context

This dropdown could also be very handy on the table tab, providing a similar filtering function.
And it could replace the current split into "Country/area" and "Other", thereby solving #3335.

Mockup

CleanShot 2024-05-10 at 00 46 28

@danyx23
Copy link
Contributor

danyx23 commented Jun 5, 2024

This makes sense but we are a bit unsure if the drop down makes the entity selector too busy. Another approach that could also be considered is to turn the list of checkboxes under countries and regions into a list of notion style toggle triangle headings (i.e. one for Income groups, Continents etc) with the items inside it.

We think it would be good to discuss this with @mrwbkrm (maybe at the next data viz triage meeting)

@mrwbkrm
Copy link

mrwbkrm commented Jun 5, 2024

Hey there! Yes, I did some discovery work on this back in the day! Here you can find some outdated sketches with some ideas there.
Open to discussing whenever you like!

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

No branches or pull requests

3 participants