Does anyone know how to adjust the font-size of labels on the x-axis? I looked through lots of manual pages and couldn't find anything close.
I tried
$graph->xaxis->scale->ticks->SetSize(8,3);
But actually couldn't get it to generate anything different.
I also have the graph_theme=null before I output the graph. If I remove it, it just changes the ticks on the y-axis and makes them more general.
$graph->graph_theme=null;
$graph->Stroke();
Can't be done. Also receiving down votes, not sure why, so closing this out and good luck to anyone who wants to do this, it doesn't appear possible.
look this http://jpgraph.net/download/manuals/chunkhtml/ch14s08.html .
This line adjust the font-size of labels on the x-axis $graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,9);
I hope this help you.
It actually can be done, as Rebe said using $graph->yaxis->SetFont(FF_ARIAL,FS_NORMAL,20);
Just make sure, you are refering to the right axis and have the font in the fonts folder. In my case it was missing...and I had to upload the arial.ttf
这是一个古老的话题,但以下应该有效
$graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,14);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.