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";
$chart = new jqChart();
$chart->setChartOptions(array(
"defaultSeriesType"=>"area"
))
->setTitle(array('text'=>'Historic and Estimated Worldwide Population Growth by Region'))
->setSubtitle(array("text"=>'Source: Wikipedia.org'))
->setxAxis(array(
"categories"=> array('1750', '1800', '1850', '1900', '1950', '1999', '2050'),
"tickmarkPlacement"=> 'on',
"title"=>array("enabled"=>false)
))
->setyAxis(array(
"title"=>array("text"=> 'Percent')
))
->setTooltip(array(
"formatter"=>"function(){return this.x +': '+ Highcharts.numberFormat(this.percentage, 1) +'% ('+Highcharts.numberFormat(this.y, 0, ',') +' millions)';}"
))
->setPlotOptions(array(
"area"=>array(
"stacking"=> 'percent',
"lineColor"=> '#ffffff',
"lineWidth"=> 1,
"marker"=>array(
"lineWidth"=> 1,
"lineColor"=>"#ffffff"
)
)
))
->addSeries('Asia', array(502, 635, 809, 947, 1402, 3634, 5268))
->addSeries('Africa', array(106, 107, 111, 133, 221, 767, 1766))
->addSeries('Europe', array(163, 203, 276, 408, 547, 729, 628))
->addSeries('America', array(18, 31, 54, 156, 339, 818, 1201))
->addSeries('Oceania', array(2, 2, 2, 6, 13, 30, 46));
echo $chart->renderChart('', true, 700, 350);
?>