本文整理汇总了PHP中PiePlot3D::ShowBorder方法的典型用法代码示例。如果您正苦于以下问题:PHP PiePlot3D::ShowBorder方法的具体用法?PHP PiePlot3D::ShowBorder怎么用?PHP PiePlot3D::ShowBorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PiePlot3D
的用法示例。
在下文中一共展示了PiePlot3D::ShowBorder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: graficarTorta
function graficarTorta()
{
require 'jpgraph/src/jpgraph.php';
require 'jpgraph/src/jpgraph_pie.php';
require 'jpgraph/src/jpgraph_pie3d.php';
// Some data
$data = array($_GET['pos'], $_GET['neg']);
// Create the Pie Graph.
$graph = new PieGraph(350, 300);
$theme_class = new VividTheme();
$graph->SetTheme($theme_class);
// Set A title for the plot
// $graph->title->Set("Grafico Estadistico");
// Create
$p1 = new PiePlot3D($data);
$p1->ShowBorder();
$p1->SetColor('black');
$p1->ExplodeSlice(1);
$p1->SetLegends(array($_GET['lab1'], $_GET['lab2']));
$p1->SetCenter(0.5, 0.4);
$p1->SetAngle(40);
$graph->Add($p1);
$graph->Stroke();
}
示例2: createPie
function createPie($waktu, $data_pie)
{
require_once '../jpgraph/jpgraph.php';
require_once '../jpgraph/jpgraph_pie.php';
require_once '../jpgraph/jpgraph_pie3d.php';
// Some data
$data = $data_pie;
// Create the Pie Graph.
$graph = new PieGraph(400, 300);
$theme_class = new VividTheme();
$graph->SetTheme($theme_class);
// Set A title for the plot
$graph->title->Set("GRAFIK KEPATUHAN WP");
$graph->title->SetFont(FF_ARIAL, FS_BOLD, 12);
// Create
$p1 = new PiePlot3D($data);
$p1->SetLegends(array('PATUH', 'KURANG PATUH', 'TIDAK PATUH'));
$p1->SetCenter(0.5, 0.45);
$p1->ShowBorder();
$p1->SetColor('black');
$graph->Add($p1);
//unlink('../graphfiles/pie_kepatuhan.png');
$graph->Stroke("../graphfiles/pie_kepatuhan_" . $waktu . ".png");
}