-
-
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
Some charts allow selecting entities for which there is no data #1341
Comments
Guesstimating at 1d, but it could be more complex than that. |
Reviewed again with @danyx23, we still think this is important to fix |
For reference, here is another example where this is an issue: (The first example given above actually looks fine to me, the second one is a broken link) |
I did an investigation into this one but can't actually fix it. I'll drop my findings here. The gist is: The select dialog and the chart are based on two different tables – the chart is based on the transformed table, but the select dialog is based on the input table. The select dialog thus displays all entities that exist in the input table. But: In the case of stacked area charts, the In the examples I looked at, this function call often seemed to be the "offending" one in the owid-grapher/packages/@ourworldindata/grapher/src/stackedCharts/AbstractStackedChart.tsx Line 71 in 2881282
It drops rows when any column is missing. If a stacked area charts displays, for example, four different variables and one happens to be missing for an entity, than all data would be discarded and no chart plotted. This is what happens here: Aruba comes with data for the variable "Population aged 0-14" only, which means that no stacked area chart can be plotted. (But Aruba shows up in the select dialog as it is does exist in the input table!) |
For future reference: There's some discussion around this in this Slack thread. |
Note of a discussion in today's Grapher Hour (Marcel, Christian, Sophia):
|
Description
Some StackedArea charts show entities in select dialog that we seem to have no data for:
Expected behaviour
Entities without (plottable) data should not be listed in select dialog for StackedArea.
The text was updated successfully, but these errors were encountered: