How to make a Bubble chart with an Interactive Map
Problem:
I am trying to make a world map that will display the population of given countries. I have reviewed the documentation and believe I am misunderstanding how the chart draws the bubble in relation to the map. My bubbles just stay on the top left of my screen and never update or move with the map when the user drags the map around. Here is a link to the documentation I was following: https://www.zingchart.com/gallery/bubble-chart-with-interactive-map
Here is my chart: Test File
Solution:
The solution is to add shapes.options.id: 'map'
and update in drawCountry()
to have id
set to “map’ too. We've attached an HTML file for your reference.