Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossfiltering between map panel and other panels #78

Open
robouden opened this issue Nov 6, 2020 · 4 comments
Open

Crossfiltering between map panel and other panels #78

robouden opened this issue Nov 6, 2020 · 4 comments

Comments

@robouden
Copy link

robouden commented Nov 6, 2020

Not sure what it would involve, but it would be very usefully for Safecast to have the option like in Kibana to have a "draw polygons and select data" option on the map.

A project at Safecast has resulted in a stand-alone leaflet setup that would produce the effect (link). It would be wonderful to have that option with the map plugin and also useful for other users I think. (@matschaffer has also information about that project.)

Screenshot from 2020-11-06 09-10-52

regards,
Rob Oudendijk

@matschaffer
Copy link
Collaborator

matschaffer commented Nov 6, 2020

That app is up at https://library-dev.safecast.cc/index btw if anyone wants to play with it (maybe not forever but for now anyway).

What we'd be interested in is having a way to draw shapes on the grafana map panel, then have that create a geo filter (maybe a dashboard variable?) that would apply to all the panels on a dashboard.

@amotl
Copy link

amotl commented Nov 6, 2020

Dear Rob and Mat,

thank you so much for bringing this up, it resonates very much with us. Let me collect some places here where the community has already talked about this feature in the past.

Mat already mentioned that at grafana#179 the other day, where we already picked it up from and referenced in our wishlist for Grafana. Also, Rob mentioned it within #66 a few weeks ago.

It is somehow related to the general topic of cross filtering between multiple panels in Grafana, but let's focus on the Map Panel being the driver for now in this very context.

#31 also includes some references into that direction. So, I wanted to take the chance to ping @xkilian and @tobiasdirksen, but more specifically @anatolyza about it, because he already worked on integrating Leaflet-Geoman - a Leaflet plugin for drawing and editing geometry layers - on behalf of a fork from here. We already reported about that at #20 (comment) and the current diff is at develop...anatolyza:develop, where some valuable improvements into that direction could be picked up from.

With kind regards,
Andreas.

cc @wetterfrosch

P.S.: Last but not least, I would like to mention #23 and #44 here, which are more distantly related and also the great Crossfilter, which is living on https://github.com/crossfilter these days. The dc.js - Dimensional Charting Javascript Library already makes use of that and by mixing in D3-technologies, they have some beautiful examples demonstrating crossfiltering examples between maps (choropleths) and other data at US Venture Capital Landscape 2011 and Major Canadian City Crime Stats 1998-2011. It's not quite on the spot because we want to draw shapes on the map, but nevertheless it's always enjoyable to see such nice eyecandy and might add some motivation.

@amotl amotl changed the title Request for adding Kibana functionality to map. Crossfiltering between map panel and other panels Nov 6, 2020
@amotl
Copy link

amotl commented Nov 8, 2020

@robouden said:

Latest Leaflet.draw at https://cdnjs.com/libraries/leaflet.draw seems much more updated too.

@amotl
Copy link

amotl commented Nov 8, 2020

Dear Rob,

would you prefer Leaflet.draw over Leaflet-Geoman? From my perspective, Leaflet-Geoman looks way better in terms of features and current maintenance.

With kind regards,
Andreas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants