from GChartWrapper import Pie from GChartWrapper import Pie3D p=Pie3D( [1,2,3,4] ).label('A','B','C','D').color('00dd00') p.save('a.png') p=Pie([5,10,15]).title('Hello Pie').color('red','lime').label('hello', 'world','Hello World') p.save('b.png')
#!/usr/bin/env python from GChartWrapper import Pie chart = Pie([20, 10]) chart.title('Hello GChartWrapper') chart.label('hello', 'world') chart.save('pie_en.png')
#!/usr/bin/env python3 from GChartWrapper import Pie chart = Pie([20, 10]) chart.title('안녕 GChartWrapper') chart.label('안녕', '세상') chart.save('pie_ko.png')