diff --git a/src/python/scripts/pyrte_chart_pie.py b/src/python/scripts/pyrte_chart_pie.py new file mode 100755 index 0000000000000000000000000000000000000000..1095a6c194288bdcfbbef2bebb139bb8b7ac45fe_c3JjL3B5dGhvbi9zY3JpcHRzL3B5cnRlX2NoYXJ0X3BpZS5weQ== --- /dev/null +++ b/src/python/scripts/pyrte_chart_pie.py @@ -0,0 +1,18 @@ +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()