sgratzl / chartjs-chart-geo

Chart.js Choropleth and Bubble Maps
https://www.sgratzl.com/chartjs-chart-geo/
MIT License
340 stars 36 forks source link

choropleth and bubbleMap at the same time? #18

Closed gihco closed 4 years ago

gihco commented 4 years ago

Hi, It seems that it will not be possible to have choropleth and bubbles at the same time as both are represented by its own chart type, right? Is there something I'm missing? Is this something you plan to add for the future? Many thanks!

sgratzl commented 4 years ago

it seems to work as in https://codepen.io/sgratzl/pen/XWmpbZQ?editors=0010

but from a visualization point of view, I'm not sure whether it makes sense

image

gihco commented 4 years ago

Many thanks for the quick and profound reply!

I have a use case for that (which makes sence I believe) which currently uses Datamaps (https://datamaps.github.io/) based on d3/svg. However, that lib is no longer maintained and I use chartjs anyway already in the same project. Will no look into how far I get with animations, pan/zoom, performance, and HTML-based tooltips

anupam42 commented 4 years ago

Hi, I am looking something like choropleth and bubbleMap in one Because i will be having choropleth map as parent and how to map coordinate using bubbleMap Ex: World map and show affected area with bubbleMap with coordinates

Thanks

sgratzl commented 4 years ago

does the background map shows any data or just the outline of the world/countries for reference?

anupam42 commented 4 years ago

Background just the outline of world map for reference and inside that i want to show coordinates for particular countries. For Example i have attached image.

Thanks

Screenshot 2020-05-14 at 1 04 16 PM
sgratzl commented 4 years ago

sounds more like a regular bubbleMap where they outline has a background color.

similar to https://codepen.io/sgratzl/pen/vYNzOYr?editors=0010

anupam42 commented 4 years ago

Its just bubbleMap can i do same with choropleth map ?