owid / owid-grapher

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

Support date in Timeline selection in Grapher #3927

Open lucasrodes opened 1 week ago

lucasrodes commented 1 week ago

Core problem

In ETL, we sometimes work with time series with dates (not years). However, Grapher uses 'number of days since zeroDay' under the hood, and is not able to select dates in the Timeline selection.

image

Proposed solution

It'd be nice if we could render a date selector there. Or support date-like strings.

Context

For Grapher to support date format, we have been using a hack:

lucasrodes commented 1 week ago

Saloni was confused with the Timeline selection in https://github.com/owid/owid-issues/issues/1653