使用pChart 2,以下代码将产生下图。如何将轴固定为读取0、1、2、3到10,而不是也添加0.5、1.5标签?
$MyData = new pData();
$MyData->addPoints(array(8,7,9,2), "Colour Count");
$MyData->setAxisName(0, "Colour Count");
$MyData->addPoints(array('Green', 'Brown', 'Yellow', 'Blue'), "Colours");
$MyData->setSerieDescription("Colours", "Chart Colours");
$MyData->setAbscissa("Colours");
$myPicture = new pImage(1000, 400, $MyData);
$myPicture->setFontProperties(array("FontName"=>$chartFont,"FontSize"=>$axisFontSize));
$myPicture->setGraphArea(360, 60, 800, 400);
$AxisBoundaries = array(0=>array("Min"=>0,"Max"=>10));
$myPicture->drawScale(array("Mode"=>SCALE_MODE_MANUAL,"ManualScale"=>$AxisBoundaries, "Pos"=>SCALE_POS_TOPBOTTOM));
$myPicture->drawBarChart(array());
$myPicture->render("colours.png");