owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.39k stars 229 forks source link

Scatterplots with fixed x-axis year have no table values #1274

Closed larsyencken closed 2 years ago

larsyencken commented 2 years ago

Context

Scatterplots co-plot two variables, one on x and one on y, and they are joined on (entity, year/date). But, you can also co-plot a variable against itself, in which case it is only joined against entity and you fix the x axis to a specific year/date. This is helpful to see how a variable changes compared to a fixed moment in time.

Problem

When you fix the x-axis in a scatterplot, the table view no longer displays the data values anymore.

Examples:

Screen Shot 2022-04-12 at 12 42 28
larsyencken commented 2 years ago

Marked it as "important" since we estimate ~30 charts are affected and we thus need it to make their tables correct and useful. Estimate is 1d since we believe this is also happening late in the rendering chain, meaning it should be a simple fix.

marcelgerber commented 2 years ago

To-do list for myself: