<?php include( 'chartlogix.inc.php' ); $chart = new BarChart(); $chart->setLegendWidth( 0 ); $chart->setXAxisTitleStyle( 'arial.ttf', 20, 'CC0000' ); $chart->setYAxisTitleStyle( 'arial.ttf', 20, '0000FF' ); $chart->setLeftAxisTitle( 'MP3 Player Sales' ); $chart->setBottomAxisTitle( 'Months in 2008' ); $chart->doBarSeries( 'MP3 Player 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 );
|