source:
trunk/xgraph/jpgraph/Examples/example26.php@
42
| Last change on this file since 42 was 42, checked in by , 11 years ago | |
|---|---|
| File size: 337 bytes | |
| Rev | Line | |
|---|---|---|
| [42] | 1 | <?php // content="text/plain; charset=utf-8" |
| 2 | require_once ('jpgraph/jpgraph.php'); | |
| 3 | require_once ('jpgraph/jpgraph_pie.php'); | |
| 4 | ||
| 5 | $data = array(40,60,21,33); | |
| 6 | ||
| 7 | $graph = new PieGraph(300,200); | |
| 8 | $graph->SetShadow(); | |
| 9 | ||
| 10 | $graph->title->Set("A simple Pie plot"); | |
| 11 | ||
| 12 | $p1 = new PiePlot($data); | |
| 13 | $graph->Add($p1); | |
| 14 | $graph->Stroke(); | |
| 15 | ||
| 16 | ?> | |
| 17 | ||
| 18 |
Note:
See TracBrowser
for help on using the repository browser.
