pygal
pygal copied to clipboard
Worldmap: Add color legend for quantity
Hi everybody,
Let's take the following example for a worldmap:
worldmap_chart = pygal.Worldmap()
worldmap_chart.title = 'Minimum deaths by capital punishement (source: Amnesty International)'
worldmap_chart.add('In 2012', {
'af': 14,
'bd': 1,
'by': 3,
'ye': 28
})
worldmap_chart
Is there a possibility to add a color legend for the visualized quantity in a particular region? I.e. a color strip which displays which quantities are visualized as pink vs. which quantities are visualized as dark-red?
Thanks
Andy
I'm also interested by this feature (for the French map in my case).