Re: [Pear][Image_Graph] Labels

From: Date: Thu, 18 Nov 2004 10:55:27 +0000
Subject: Re: [Pear][Image_Graph] Labels
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15626@lists.php.net to get a copy of this message
If I understand you correctly, you would like the labels on the x-axis to be displayed vertically instead of horizontally? That is actually quite easy :) Simply do the something like the following somewhere before the call to Image_Graph::done(); $AxisX =& $Plotarea->getAxis(IMAGE_GRAPH_AXIS_X); $AxisX->setFont($GLOBALS['_Image_Graph_verticalFont']); The global variable _Image_Graph_verticalFont is created at the end of Image/Graph.php together with _Image_Graph_font to have some default fonts to work with. Regards Jesper Nunners wrote:
Is it possible to put the x-axis labels on a bar chart, up the bar? The example below shows the problem I’ve got…! Cheers Nunners


« previous php.pear.general (#15626) next »