我用的是jpgraph2.2版本,将示例example26.1.php做了一点修改后代码如下:复制PHP内容到剪贴板
PHP代码:
<?php
include ("../jpgraph.php");
include ("../jpgraph_pie.php");
$data = array(25,50,15);
$graph = new PieGraph(400,300,"auto");
$graph->SetShadow();
$graph->title->Set("测试标题");
$graph->title->SetFont(FF_SIMSUN,FS_BOLD);
$p1 = new PiePlot($data);
$p1->SetLegends(array("测试1","测试2","测试3"));
$p1->SetCenter(0.4);
$graph->Add($p1);
$graph->Stroke();
?>
这样标题显示正常,但其它地方还是乱码,请问这改怎么修改啊??
[]<
<?php
include ("../jpgraph.php");
include ("../jpgraph_pie.php");
$data = array(25,50,15);
$graph = new PieGraph(400,300,"auto");
$graph->SetShadow();
$graph->title->Set("测试标题");
$graph->title->SetFont(FF_SIMSUN,FS_BOLD);
$p1 = new PiePlot($data);
$p1->SetLegends(array("测试1","测试2","测试3"));
$p1->SetCenter(0.4);
$graph->Add($p1);
$graph->Stroke();
?>