Skip to content
Snippets Groups Projects
Commit 1095a6c19428 authored by Jean-Francois Pieronne's avatar Jean-Francois Pieronne
Browse files

src/python/scripts/pyrte_chart_pie.py initial version

parent f04e6b885ba9
No related branches found
No related tags found
No related merge requests found
import cgitb; cgitb.enable()
import gdchart
import sys
myPie = gdchart.Pie3D()
myPie.width = 250
myPie.height = 250
myPie.title = "Pie3D"
myPie.setData(1, 2, 3, 4, 5)
myPie.setLabels(["One", "Two", "Three", "Four", "Five"])
myPie.color = ["red", "green", "yellow", "orange", "blue"]
myPie.explode = [0, 0, 20, 0, 0]
print 'Content-Type: image/png\n'
sys.stdout.flush()
myPie.draw(sys.stdout)
sys.stdout.flush()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment