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
29 stars 3 forks source link

Dashboard filters #1545

Closed ptbrowne closed 1 month ago

ptbrowne commented 1 month ago

Work in progress.

Functionality

It is now possible to activate a single shared temporal filter for all charts depending on a particular temporal dimensions.

How to test

  1. Start from Photovoltaikanlagen
  2. Add a line chart
  3. Add a new dataset like Median electricity tariff for Switzerland
  4. Proceed to layout options
  5. Choose Dashboard as a layout
  6. See that a section "Shared filters" appears in the left panel
  7. Activate the shared filter on Year
  8. You can now interactively control both charts with the same filter
  9. Control the default extent through the date pickers in the left panel
  10. Publish the chart

Next steps in following PRs

Refactors

Take the opportunity to explode the big configurator-state file into multiple ones. With this, it should be easier to add changes. I'd like your feedback on this Bartosz also.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2024 10:25am
bprusinowski commented 1 month ago

For the breaking of giant configurator state into smaller files, I think it's a very good step into making this more manageable, which also shouldn't really change any behavior if I am not mistaken, so I am all for it :)