I am looking for a simple way to create a worldmap in python. For example, let's take the following country data:
world_data = {
'af': 141,
'bd': 5,
'by': 2,
'cn': 10,
'gm': 90,
'in': 43,
'ir': 314}
Is there any simple way to create a worldmap with customized coloring and color threshold for this data?
At the moment I am using pygal (see below). Unfortunately, I did not find any way for pygal to print a color legend or define thresholds for the coloring.
worldmap_chart = pygal.Worldmap()
worldmap_chart.add('data', world_data)
worldmap_chart
Any help is appreciated