用jpgraph画的横向条形图(X轴在上边),如何使X轴放在下边?

我的源码:


require_once("jpgraph-4.3.4/src/jpgraph.php");
require_once("jpgraph-4.3.4/src/jpgraph_bar.php");

$datay=array(1,2,3,4,5);
$name=array('A','B','B','D','E');

$graph = new Graph(1000,380,'auto');
$graph->SetScale("textint");
$graph->Set90AndMargin(100,60,60,30);

$graph->SetBox(false);
$graph->ygrid->SetFill(false);
$graph->xaxis->SetTickLabels($name);
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false,false);

$b1plot = new BarPlot($datay);
$graph->Add($b1plot);
$b1plot->SetFillcolor(array(237,125,49));//设置柱形图颜色
$b1plot->SetWidth(35);
$b1plot->value->Show();//设置显示数字
$b1plot->value->SetFormat('%d');
$b1plot->SetColor('white');

$graph->title->SetMargin(20);//边距
$graph->title->SetFont(FF_PGOTHIC,FS_BOLD,20);
$graph->title->Set("AAAAAA");

$graph->xaxis->SetFont(FF_PGOTHIC,FS_NORMAL);
$graph->yaxis->SetFont(FF_PGOTHIC,FS_NORMAL);
$graph->xaxis->SetColor('black');
$graph->yaxis->SetColor('black');

$graph->Stroke();//输出图像

效果:
img

没用过这个组件,你把那个放在最后试下,就是画的顺序换一下,你改下$graph->Set90AndMargin(100,60,60,30);这个看看吧,你屏蔽这个以后,看下显示效果就知道了