pygal icon indicating copy to clipboard operation
pygal copied to clipboard

Worldmap: Add color legend for quantity

Open aschilling opened this issue 10 years ago • 1 comments

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

aschilling avatar May 25 '15 15:05 aschilling

I'm also interested by this feature (for the French map in my case).

borgeser avatar Mar 20 '20 13:03 borgeser