Jamppu Kalske - 2006-08-02 22:54:29
Can anyone say why max value is changed to 35 on the output in following sample?
include('baaChart.php');
$mygraph = new baaChart(600);
$mygraph->setTitle('Regional Sales','Jan - Jun 2002');
$mygraph->setXLabels("Jan,Feb,Mar,Apr,May,Jun");
$mygraph->addDataSeries('C',COLS_STACKED,"0,0,10","South");
$mygraph->addDataSeries('C',0,"0,10,0","East");
$mygraph->addDataSeries('C',0,"10,0,0","West");
$mygraph->setBgColor(0,0,0,1); //transparent background
$mygraph->setChartBgColor(0,0,0,1); //as background
$mygraph->setXAxis("Month",1);
$mygraph->setYAxis("Sales (£000)",0,10,5,1);
$mygraph->drawGraph();
It looks stupid when the actual maximum is 10 but the graph is showing the grid up to 35