This is a simple pie chart showing the data type 'text-data'. When you use this data type with pie charts, the first entry in each record (a label) is ignored; the sum of all the second entries equals the relative size of the first segment, the sum of the third entries is the second segment, etc. So this pie has 4 segments, of relative size 250, 200, 350, and 200.
Data type 'data-data' is similar, except the first two entries in each record (label and X value for other plot types) is ignored.
Example 5.9. Pie Chart, text-data
<?php # PHPlot Example: Pie/text-data require_once 'phplot.php'; $data = array( array('', 100, 100, 200, 100), array('', 150, 100, 150, 100), ); $plot = new PHPlot(800,600); $plot->SetImageBorderType('plain'); $plot->SetDataType('text-data'); $plot->SetDataValues($data); $plot->SetPlotType('pie'); $plot->DrawGraph();
This version of the manual was produced for the
PHPlot Sourceforge project web service site, which requires the logo on each
page.
To download a logo-free copy of the manual, see the
PHPlot project downloads
area.