Open lucasrodes opened 2 months ago
Saloni was confused with the Timeline selection in https://github.com/owid/owid-issues/issues/1653
Maybe a simpler solution to this that could be done more quickly is to allow a YYYY-MM-DD format and just parse and translate that.
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.
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:
DATE_REFERENCE - date
in days. Then, we filled the metadata fieldsyearIsDay=True
andzeroDay=DATE_REFERENCE.
DATE_REFERENCE
, we are using the minimum date appearing in the time series. However, this field is exposed in ETL and hence can be changed by the user. So, we it could be any date.