Login Register Wishes Forum About
Language Reference » Dataset functions » setAbscissa
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
setAbscissa - Define the abscissa axis labels serie

This function allow you to associate a data series to the abscissa labels of you chart. This function can be used in a lot of circumstances like for displaying dates, hours, or pure text labels on the abscissa axis.

When selecting a serie as Abscissa axis labels, this serie is marked as "non drawable"

Calling this function

Where :

Serie is the name of the serie that will be used to label the abscissa axis.

Sample script #1

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

 /* Populate some data */
 $MyData->addPoints(array(1,2,3,4),"My Serie 1");
 $MyData->addPoints(array("Jan","Feb","Mar","Apr"),"My Serie 2");

 /* Use "My Serie 2" as abscissa axis labels */
 $MyData->setAbscissa("My Serie 2");

Labels "Jan","Feb","Mar","Apr" will be used on the abscissa axis.
Sample script #2

 $MyData = new pData();  

 /* Prepare some nice data & axis config */

 /* 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
  There is no linked topic yet.
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.