<?php include( 'chartlogix.inc.php' ); $chart = new BarChart(); $chart->setTitle( 'This is a bar chart' ); $chart->addColumns( array('Jan','Feb','Mar','Apr','May') ); $chart->doBarSeries( 'Sales', 'FFCC00' ); $chart->addData( 'Jan', 191 ); $chart->addData( 'Feb', 217 ); $chart->addData( 'Mar', 178 ); $chart->addData( 'Apr', 263 ); $chart->addData( 'May', 321 ); $chart->drawPNG( 500, 400 );
|