visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Legend: Only display data points relevant to the visualization

Open sosiology opened this issue 1 year ago • 3 comments

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 avatar Apr 24 '24 15:04 sosiology

@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.

sosiology avatar Apr 24 '24 15:04 sosiology

I also think it makes sense :)

bprusinowski avatar Apr 24 '24 15:04 bprusinowski

@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

Rdataflow avatar Apr 24 '24 17:04 Rdataflow

reviewed on test and LGTM

sosiology avatar May 06 '24 07:05 sosiology