Login Register Wishes Forum About
Language Reference » Dataset functions » setAxisColor
Help topics
Latest updates
4669d  replaceImageMapTitle
4669d  replaceImageMapValues
4669d  createFunctionSerie
4669d  setAbsicssaPosition
4669d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setAxisColor - Set the color of a specific axis

This function allows you to specify the color of a specific axis. If you specify a color for an axis, this will overide the default colors you can pass to the drawScale function. Parameters are given trough a $Format array. To learn more about this please read the Format array guide.

Calling this function
Where :

AxisID is the ID of the axis you want to customize.
Format is an array containing the drawing parameters of the arrow.

This function will overide the axis color, tick color and font color of your axis.

Customisation array - Tune up your axis!

It is possible to customize the color of the axis by playing with this array.

Axis color can be set with R, G, B.

Sample script

 /* Create your pData object */
 $MyData = new pData();  
 $MyData->addPoints(array(1,2,VOID,9,10),"Humidity 1");
 $MyData->addPoints(array(1,VOID,7,-9,0),"Humidity 2");
 $MyData->addPoints(array(-1,-1,-1,-1,-1),"Humidity 3");
 $MyData->setSerieOnAxis("Humidity 1",1);
 $MyData->setSerieOnAxis("Humidity 2",1);
 $MyData->setSerieOnAxis("Humidity 3",1);
 $MyData->setAxisName(2,"Empty value");

 /* Associate a color to each axis */

 /* Create a labelled X axis */
 $MyData->setSerieDescription("Labels","My labels");
Last updated on 07/03/2010 
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.