icps

notes

Charts

http://pygal.org/en/stable/documentation/index.html

1
2
3
4
5
6
7
import pygal
pie_chart = pygal.Pie()
pie_chart.title = 'PTT'

for r in result:
    pie_chart.add(r['country'], r['number'])
pie_chart.render_to_file(DIR_JSON+board+'.svg')