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 | require_once ('jpgraph/jpgraph_pie3d.php'); |
---|
| 5 | |
---|
| 6 | $data = array(40,60,21,33); |
---|
| 7 | |
---|
| 8 | $graph = new PieGraph(330,200); |
---|
| 9 | $graph->SetShadow(); |
---|
| 10 | |
---|
| 11 | $graph->title->Set("A simple 3D Pie plot"); |
---|
| 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); |
---|
| 13 | |
---|
| 14 | $p1 = new PiePlot3D($data); |
---|
| 15 | $p1->ExplodeSlice(1); |
---|
| 16 | $p1->SetCenter(0.45); |
---|
| 17 | $p1->SetLegends($gDateLocale->GetShortMonth()); |
---|
| 18 | |
---|
| 19 | $graph->Add($p1); |
---|
| 20 | $graph->Stroke(); |
---|
| 21 | |
---|
| 22 | ?> |
---|
| 23 | |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.