Display the right period format in charts

The charts always display periods as formatted dates (days) when hovering the data points (e.g. 2023/01/01), even when the period is annual, or monthly (e.g. 2023).

The chart must respect that period format.

This applies to the sparklines on the dataset page, the "chart" tab on the dataset page, and the chart on the series page.

Moreover when the series frequency is "daily", the period should be formatted YYYY-MM-DD , not YYYY/MM/DD.

Examples

  • https://db.nomics.world/AMECO/UDGG (in sparklines)
  • https://db.nomics.world/AMECO/UDGG?tab=chart
  • https://db.nomics.world/AMECO/UDGG/FRA.1.0.0.0.UDGG
Edited Nov 21, 2023 by Christophe Benz
Assignee Loading
Time tracking Loading