grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
309 stars 199 forks source link

Feature - Toggle values of map by clicking legend row #229

Open anandtripathi5 opened 4 years ago

anandtripathi5 commented 4 years ago

If we click legend row, then it will show only those values that come under the selected legend row.

amotl commented 4 years ago

Dear Anand,

can you elaborate on that?

With kind regards, Andreas.

clompsy commented 4 years ago

can you elaborate on that?

The legend shows dot coloring based on value tresholds. So clicking on an entry in the legend could then filter out all other (non-selected) treshold ranges so one could more easily check the locations that are below/above a certain treshold.

Consider you have 3 treshold ranges for your map (green/yellow/red) and a lot of dots on your map and you want to quickly have an overview of all yellow dots, you could simply click on the yellow entry of the legend which would hide all green and red dots.

I think that sounds like a nice idea since it follows the behavior of the legend of the Graph visualization which also allows for clicking on legend to quickly filter displayed data (even though there it's filtering by series, not by treshold). Not sure if the JS map viewer supports this interaction though.

amotl commented 4 years ago

Dear @clompsy,

thanks for outlining the details here. We are now also tracking that on our fork [1,2] at https://github.com/panodata/grafana-map-panel/issues/52 which also adds some other important features in comparison to the original Worldmap you both might enjoy.

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121