diff --git a/Python/worldmap.py b/Python/worldmap.py new file mode 100644 index 0000000..9225d74 --- /dev/null +++ b/Python/worldmap.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +"""worldmap.ipynb + +Automatically generated by Colaboratory. + +Original file is located at + https://colab.research.google.com/drive/1Ule31aNs8dAJ4PHpgrsE0WefraXHSe76 +""" + +# import pygal library +import pygal + +# create a world map +worldmap = pygal.maps.world.World() + +# set the title of the map +worldmap.title = 'Countries' + +# adding the countries +worldmap.add('Random Data', { + 'aq' : 10, + 'cd' : 30, + 'de' : 40, + 'eg' : 50, + 'ga' : 45, + 'hk' : 23, + 'in' : 70, + 'jp' : 54, + 'nz' : 41, + 'kz' : 32, + 'us' : 66 +}) + +# save into the file +worldmap.render_to_file('abc.svg') + +print("Success") \ No newline at end of file