-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Charts with projections do not do multiple entities well #3750
Comments
/cc @lucasrodes |
Here's a good example of a benefit of keeping projections in different indicators, at least as one of our options: https://ourworldindata.org/grapher/comparison-of-world-population-projections |
The problem of upper and lower confidence intervals is also a bit related (two more time series that are closely related but lead to some odd behaviour e.g. in facetting). Probably it makes sense to keep these as different variables as they can then also have different sources (e.g. the historic data might come from a different institute than the projection?). The relationship of different variables/indicators to each other is something that Grapher is very bad at. If it were better with this then this could also have big benefits for doing drillup/-down. |
@lucasrodes can you help me understand the core of this issue? Enabling multiple entity selection for the Population Growth Rates chart (the first example) looks ok to me in its default view. What am I missing? Of course facetting wouldn't work. Is that what this issue is about? Or is it about these 'dual-labels' (+ incorrect colours) for multi-entity multi-indicators charts? |
I don't remember the root problem at the moment. They may have been resolved during the year. But I am not sure. I checked the examples that Lars mentioned:
As you mention, I don't see a problem with the chart when enabling the multi-choice selector.
I am unsure if it is related, but I don't know how to show projected (i.e., dashed) lines in an explorer view. Anyhow, I think the issue, if any, is about plotting charts with multiple entities and projected/non-projected lines, as in your second example. I think that's a rare case, but ideally we would want to keep the same colors per-entity. In general, I think it'd be nice if we improved the workflow with projections. Anyway, I think this sounds more like a bigger thing, so it would create a separate issue for that. I've noticed the issue raised by Marcel, too. And as Daniel says,
I think there is room to improve this a bit, but also a separate issue. |
Thanks for taking the time to look into this, @lucasrodes! I'll close this issue then and create new issues for more specific problems instead. Re explorers: I don't think there is a way to have projected data in explorers, but it should be relatively straightforward to support that. I'll create an issue for it! |
Background
Sometimes our data sources include projections into the future. Grapher handles this by using two indicators, one for the "stem" of the chart containing actual measurements, and one for the projections. The projection indicator has
isProjection: true
set, causing it to be displayed as a dotted line.Problem
Our approach makes all lines with projections into multi-indicator charts. But when charts are both multi-indicator and multi-entity, then every line needs a double-label, which is super ugly.
Impact
This tends to impact only a few charts, but quite important ones.
We have workarounds, but they require us to either
Possible approaches
"projectionAfter": 2023
)The text was updated successfully, but these errors were encountered: