Login Register Wishes Forum About
Language Reference » Dataset functions » setAxisUnit
Help topics
Latest updates
3330d  replaceImageMapTitle
3330d  replaceImageMapValues
3330d  createFunctionSerie
3330d  setAbsicssaPosition
3330d  negateValues
  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

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 */
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. 413 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.