I am trying to create a simple program so as to display the map of Central America with its population using Pygal_maps_world
. Here's the code for the same:
import pygal_maps_world as pa
wm=pa.World()
wm.title="Map of Central America"
wm.add('North America',{'cd': 84949494949,'mx': 494794164,'us': 99794616})
wm.render_to_file('map.svg')
I have tried a few combinations regarding the importing of the World maps to work properly but to no avail and I am not able to create the visualization.