Vertical bar chart sample
Source Code
<?php include "libchart/classes/libchart.php"; header("Content-type: image/png"); $chart = new VerticalBarChart(500,250); $dataSet = new XYDataSet(); $dataSet->addPoint(new Point("Jan 2005", 273)); $dataSet->addPoint(new Point("Feb 2005", 321)); $dataSet->addPoint(new Point("March 2005", 442)); $dataSet->addPoint(new Point("April 2005", 711)); $chart->setDataSet($dataSet); $chart->setTitle("Monthly usage for www.example.com"); $chart->render(); ?>