The jqChart...
<?php
require_once '../../../tabs.php';
?>
<!DOCTYPE html>
<html>
<head>
<style type="text">
html, body {
margin: 0; /* Remove body margin/padding */
padding: 0;
overflow: hidden; /* Remove scroll bars on browser window */
font-size: 62.5%;
}
body {
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
}
#tags {z-index: 900}
</style>
<title>jqChart PHP Demo</title>
<link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" />
<script src="../../../js/jquery.js" type="text/javascript"></script>
<script src="../../../js/jquery.jqChart.min.js" type="text/javascript"></script>
<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
</head>
<body>
<div>
<?php include ("chart.php");?>
</div>
<br/>
<?php tabs(array("chart.php"));?>
</body>
</html>
chart.php.
<?php
require_once '../../../jq-config.php';
require_once ABSPATH."php/jqUtils.php";
require_once ABSPATH."php/jqChart.php";
ini_set("display_errors","1");
$chart = new jqChart();
$chart->setTitle(array('text'=>'Browser market shares at a specific website, 2010'))
->setTooltip(array("formatter"=>"function(){return '<b>'+ this.point.name +'</b>: '+ this.y +' %';}"))
->setPlotOptions(array(
"pie"=> array(
"allowPointSelect"=> true,
"cursor"=> 'pointer',
"dataLabels"=>array(
"enabled"=>false
),
"showInLegend"=> true
)
))
->addSeries('Browser share', array(
array('Firefox', 45.0),
array('IE', 26.8),
array(
"name"=> 'Chrome',
"y"=> 12.8,
"sliced"=> true,
"selected"=> true
),
array('Safari', 8.5),
array('Opera', 6.2),
array('Others', 0.7)
))
->setSeriesOption('Browser share', 'type','pie');
echo $chart->renderChart('', true, 700, 350);
?>