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

Stacked area charts stack aggregates on top of countries #3608

Open
sophiamersmann opened this issue May 15, 2024 · 1 comment
Open

Stacked area charts stack aggregates on top of countries #3608

sophiamersmann opened this issue May 15, 2024 · 1 comment

Comments

@sophiamersmann
Copy link
Member

sophiamersmann commented May 15, 2024

Description

It's possible to stack aggregates on top of countries. In this chart, France is stacked on top of World although the World includes France. This is true for other entities as well where one entity includes another, e.g. continents and the "World" entity or "High-income countries" and "Europe".

Expected behaviour

It's a bit unclear what a good UX would look like that prevents users from stacking entities that shouldn't be stacked.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to https://ourworldindata.org/grapher/above-or-below-extreme-poverty-line-world-bank?facet=metric&country=FRA~Europe+and+Central+Asia~OWID_WRL
  2. Note that France is stacked on top of World
@danyx23
Copy link
Contributor

danyx23 commented Jun 5, 2024

Probably a good approach would be to use the info in regions.json about what kind of entity an entity is (i.e. country, continent, ...) and, for stacked charts, only allow multi-select within the same group.

The UX of this is a bit fickly, because for stacked charts you would need to communicate to the user which entities they can click and which they can't click (or which add to the current selection or which reset the selection)

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

2 participants