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

✅ Legend: Only display data points relevant to the visualization #1476

Closed sosiology closed 2 months ago

sosiology commented 3 months ago

While testing the improvements to the legends and symbols (issue https://github.com/visualize-admin/visualization-tool/issues/1425), the question arose from Tobi B. if it is possible to only show the relevant items in the legend.

see example here: https://int.visualize.admin.ch/de/v/Ne4JcJneHn8p

sosiology commented 3 months ago

@bprusinowski @ptbrowne @KerstinFaye would be interested in your opinion here. Based on the linked example, it seems reasonable to remove the non relevant legend items but i may be missing something.

bprusinowski commented 3 months ago

I also think it makes sense :)

Rdataflow commented 3 months ago

@sosiology @bprusinowski I agree with one exception: in case of ordinal scales (like forest fire warning) having the full scale helps to better understand the severity of some isolated level

sosiology commented 2 months ago

reviewed on test and LGTM