我有这样的代码:
$plot = new PHPlot();
//Define some data
$example_data = array(
array('Learning',1),
array('Reading',3),
array('Writing',3),
array('Oral Communication',1),
array('Numeracy',2),
);
$plot->SetDataValues($example_data);现在我得到了这个图表:

我的问题是如何将yAxis文本标签设置为静态值,比如1、2、3和4。不像现在的3.2,3,2.8,2.6 .2,1.8,1.6 . 1,0.8,.0??
有可能吗?
发布于 2015-11-09 06:11:28
一种可能是使用SetYTickIncrement()方法。
$plot->SetYTickIncrement(1);别忘了,还有TuneYAutoTicks()方法。
https://stackoverflow.com/questions/33603195
复制相似问题