grafana-toolbox / panodata-map-panel

Map Panel for Grafana with improved convenience, robustness and features. Friendly fork of the original Grafana Worldmap Panel. Currently not maintained, but verified to work up to Grafana 9.
https://community.panodata.org/t/grafana-map-panel/121
GNU Affero General Public License v3.0
88 stars 31 forks source link

Handling multiple data points at the same location #35

Open amotl opened 4 years ago

amotl commented 4 years ago

Introduction

Within #27, @sekomarek asked for grouping values from different circles at the same location within a single popup.

When investigating the nitty gritty details about this, we found there is more to it. The main question is how to assign the circle size and circle color attributes as well as how to handle clickthrough-links when measurements from e.g. two different sensors should be rendered at the very same location.

cc @d-roet, @wetterfrosch

amotl commented 4 years ago

Research

When searching the web for "leaflet display two points at the same location", this yields different suggestions.

Evaluation

Personally, I like the "stacking" approach most as it will give us the opportunity to color the stacked chips appropriately and distinctively. I don't see that for clustering and spidering. However, I don't see a way to bind popups to these chips yet, which is required for the original feature request #27.

References

d-roet commented 4 years ago

@amotl Thanks a lot for investigating this further. I also prefer the stacking solution, it's visually clear the points are at the same location.

In https://carto.com/blog/stacking-chips-a-map-hack/ they show at the bottom that when you have a very high zoom level the stacks get an (artificial) Y-offset. Would that be a possibility?