Login Register Wishes Forum About
Language Reference » Dataset functions » setXAxisName
Help topics
Latest updates
4699d  replaceImageMapTitle
4699d  replaceImageMapValues
4699d  createFunctionSerie
4699d  setAbsicssaPosition
4699d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setXAxisName - Define the name of the X Axis

This function allows you to set the name of the X Axis. This name will be displayed when drawing the chart area under the abscissa axis. Values on this axis can be defined with the setAbscissa function.

Calling this function

Where :

Name is the name that will be put on the X axis.

Sample script #1

 /* Create the pData object */
 $MyData = new pData(); 

 /* The abscissa axis will be named "Temperatures" */

Sample script #2

 $MyData = new pData();  

 /* Prepare some nice data & axis config */
 $MyData = new pData();  
 $MyData->setAxisName(0,"Maximum distance");

 /* Create the X serie */
 $MyData->setSerieDescription("Timestamp","Sampled Dates");

 /* Define the graph area and do some makeup */
 $myPicture->drawText(350,55,"My chart title",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE));

 /* Compute and draw the scale */
Last updated on 12/03/2009 
by Jean-Damien 
Linked resources
Community comments
  No comments have been posted yet.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.