French map

Installing

The french map plugin can be installed by doing a:

pip install pygal_maps_fr

Department

Then you will have access to the pygal.maps.fr module.

You can now plot departments (see below for the list):

fr_chart = pygal.maps.fr.Departments()
fr_chart.title = 'Some departments'
fr_chart.add('Métropole', ['69', '92', '13'])
fr_chart.add('Corse', ['2A', '2B'])
fr_chart.add('DOM COM', ['971', '972', '973', '974'])
fr_chart.render()

Or specify an number for a department: