Powered by Poor man's free PHP chart library |
Features
- 1000+ full (documented) source code
- fast speed and small memory footprint
- easy to setup and to integrate into your PHP apps
- fully OOP oriented code
- 2D chart control with header, footer, legend
- 3D pie chart class
- standard series style (horizontal|vertical bar and 100% stacked bar, scattered points and line charts with regression line)
- single and multiple data sets
- add data by code or load it from CSV files
- customization of title and axes names, their visibility, fg/bg colour, fonts, grid visibility, legend visibility, margins, bar orientation (vertical|horizontal), tool-tip visibility, anti-aliasing on|off, etc.
- no external dependency, only PHP 5 with GD support is required
function loadImg()
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("demochart").src="";
document.getElementById("demochart").src="data:image/png;base64,"+xmlhttp.responseText;
}
}
xmlhttp.open("GET","/repo-root/phpchart/index.php?" + new Date().getTime(),true);
xmlhttp.send();
}
loadImg();
setInterval(loadImg, 3000);