- 论坛徽章:
- 0
|
<?php // content="text/plain; charset=utf-8"
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_pie.php');
// Some data
$data = array(80,20);
// Create the Pie Graph.
$graph = new PieGraph(500,300);
$theme_class="DefaultTheme";
//$graph->SetTheme(new $theme_class());
// Set A title for the plot
$graph->title->Set("HDS AMS2500");
$graph->SetBox(true);
// Create
$p1 = new PiePlot($data);
$graph->Add($p1);
$p1->ShowBorder();
$p1->SetColor('black');
$p1->SetSliceColors(array('red','gray'));
$graph->Stroke();
?>
这是我的一个pie图。我想把它调用入另外的一个网页,作为数据显示,请问如何做?
|
|