Contents
Login Register Wishes Forum About
Language Reference » Dataset functions » setAxisUnit
Help topics
Latest updates
4575d  replaceImageMapTitle
4575d  replaceImageMapValues
4575d  createFunctionSerie
4575d  setAbsicssaPosition
4575d  negateValues
Toolbox
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setAxisUnit - Define the unit of one Y Axis

This function allows you to set the unit associated to one Y Axis. This unit will be displayed when the axis display mode is set to AXIS_FORMAT_UNIT. Values on this axis are automatically computed by the scaling algorithm.

By default all new series are binded to the default axis with an ID of 0. You can bind a serie to another axis using the setSerieOnAxis function.

Calling this function
setAxisUnit($AxisID,$Unit);

Where :

AxisID is the ID of the axis we want to edit.
Unit is the unit of this axis.

Sample script

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

 /* The default axis unit will be celsius degrees */
 $MyData->setAxisUnit(0,"°C");
Last updated on 10/28/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,19 seconds. Wiki revision 1.37.