<--previous | contents | next-->

Pie Charts

Pie
Pie3D

Data Format

The argument to .setData() is simply an arbitrary number of floats or integers. Values passed will be scaled proportionally to fit on the Pie chart.

Example

The 3D graph above was generated with the following program:

import gdchart

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]
myPie.draw("pie3D.png")

<--previous | contents | next--> (12/31/03)
PyGDChart User's Manual