visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Time filter initialization to only 1 year #1517

Closed ptbrowne closed 2 months ago

ptbrowne commented 4 months ago

When testing, I noticed one issue (which is also there on TEST, so not a regression, but related to this area I think):

  1. Go to https://visualization-tool-git-feat-preparation-dashboard-ixt1.vercel.app/en/create/new?cube=https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9&dataSource=Prod
  2. Add a second chart.
  3. Go back to first chart.
  4. Go to X axis.
  5. Enable interactive filter.
  6. Proceed to layout options.
  7. See that the chart changes filter range to 2014-2014.

Originally posted by @bprusinowski in https://github.com/visualize-admin/visualization-tool/pull/1516#pullrequestreview-2060222076

bprusinowski commented 2 months ago

Fixed by https://github.com/visualize-admin/visualization-tool/pull/1644