mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-05 05:34:04 +00:00
19 lines
560 B
PHP
19 lines
560 B
PHP
|
<?php
|
||
|
$dataArray=array();
|
||
|
$dataArray=$_GET[data];
|
||
|
$dataArray= base64_decode ($dataArray);
|
||
|
$dataArray= unserialize($dataArray);
|
||
|
|
||
|
require_once 'phplot.php'; // here we include the PHPlot code
|
||
|
$plot =& new PHPlot(550,400);
|
||
|
|
||
|
$plot->SetDataColors(array('#00BE00','#11568C','#FFFF00'));
|
||
|
$plot->SetImageBorderType('plain');
|
||
|
$plot->SetDataType('text-data-single');
|
||
|
$plot->SetDataValues($dataArray);
|
||
|
$plot->SetPlotType('pie');
|
||
|
foreach ($dataArray as $row)
|
||
|
$plot->SetLegend(implode(': ', $row));
|
||
|
$plot->DrawGraph();
|
||
|
?>
|