<HTML><BODY bgcolor="#FFFFFF">
hello
<?php
include "charts.php";
echo InsertChart ( "charts.swf", "charts_library", "graph.php?l=".uniqid(rand(), true), 1000, 500 );
?>
</BODY></HTML>
<?php
include_once("ChartPie.php");
$chart_data = array ( array ( "", "1001", "1002", "1003", "1004", "1005" ),
array ( NULL, 100, 30, 30, 63, 100 ));
$obj = new Chart3dPie();
$obj->set_chart_data($chart_data);
$obj->SendChartData();
?>
<?php
include_once("charts.php");
class ChartPie
{
public $_chart = array();
function __construct() {
$this->_chart['chart_type'] = 'pie';
$this->_chart[ 'chart_value' ] = array ( 'prefix' => "",
'suffix' => "%",
'decimals' => 0,
'decimal_char' => ".",
'separator' => "",
'position' => "inside",
'hide_zero' => false,
'as_percentage' => true,
'font' => "Arial",
'bold' => true,
'size' => 12,
'color' => "FFFFFF",
'alpha' => 90
);
}
function set_chart_data($chart_data) {
$this->_chart['chart_data'] = $chart_data;
}
function SendChartData() {
SendChartData ($this->_chart);
}
}
?>