panodata-map-panel icon indicating copy to clipboard operation
panodata-map-panel copied to clipboard

Choropleth map feature

Open amotl opened this issue 5 years ago • 4 comments

@nbaumann and @neilstuartcraig asked for filling the whole country area rather than overlaying a marker or dot at [1] and [2], Brooke Griffiths asked for kind of the same [3]. This is called a choropleth map in usual jargon.

[1] https://github.com/grafana/worldmap-panel/issues/14 [2] https://github.com/grafana/worldmap-panel/issues/241 [3] https://community.grafana.com/t/need-help-creating-a-map/24380

amotl avatar Jan 03 '20 21:01 amotl

Thanks @amotl - yep, we'd love this feature because the current dot-overlay is quite tricky to read/interpret with lots of data points, for example this is our "requests served per country" over 3 hours: Screenshot 2020-01-06 at 12 03 12 This means we end up having to mouse-over lots of the countries to see which they are, which is obviously not practical in a kiosk-type display. In the past i have used a map which filled the country and i found it much clearer for this sort of purpose.

neilstuartcraig avatar Jan 06 '20 12:01 neilstuartcraig

I hear you. As outlined by @samant-rags, we want to unlock this using Leaflet Choropleth Map here.

For getting a GeoJSON file covering the whole world, we found these resources after a quick research:

  • https://datahub.io/core/geo-countries
  • https://geojson-maps.ash.ms/
  • https://github.com/johan/world.geo.json/blob/master/countries.geo.json

As far as I am concerned, we should watch for license and size when choosing the respective dataset here.

amotl avatar Jan 06 '20 23:01 amotl

@felipinho-lima asked for the same thing within https://github.com/grafana/worldmap-panel/issues/241. The given example references the GeoJSON resource eu-countries.js.

amotl avatar Jan 16 '20 00:01 amotl

At [1], @sesoko88 brought grafana-leaflet-choropleth-panel by @teosibileau to our attention, see also https://github.com/panodata/grafana-map-panel/issues/20#issuecomment-645348983. Thanks a bunch!

[1] https://community.grafana.com/t/giving-the-grafana-worldmap-panel-some-love/17210/12

amotl avatar Dec 06 '20 10:12 amotl