Line | |
---|
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,12,33); |
---|
6 | |
---|
7 | $graph = new PieGraph(150,150); |
---|
8 | $graph->SetShadow(); |
---|
9 | |
---|
10 | $graph->title->Set("'sand' Theme"); |
---|
11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); |
---|
12 | |
---|
13 | $p1 = new PiePlot($data); |
---|
14 | $p1->SetTheme("sand"); |
---|
15 | $p1->SetCenter(0.5,0.55); |
---|
16 | $p1->value->Show(false); |
---|
17 | $graph->Add($p1); |
---|
18 | $graph->Stroke(); |
---|
19 | |
---|
20 | ?> |
---|
21 | |
---|
22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.