Contents
Login Register Wishes Forum About
Language Reference » Dataset functions » setSerieDrawable
Help topics
Latest updates
4574d  replaceImageMapTitle
4574d  replaceImageMapValues
4574d  createFunctionSerie
4574d  setAbsicssaPosition
4574d  negateValues
Toolbox
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
setSerieDrawable- Add a description to one serie

You can use this function to enable / disable the "Drawable" flag of a serie. When you‘ll call a charting function, only "Drawable" series will be represented.

When creating a serie it will automatically be marked as drawable.

Calling this function
setSerieDrawable($Series,$Drawable=TRUE);

Where :

Series is the name of the serie. (or an array of names)
Drawable is either TRUE or FALSE if you want to display or not the data serie.

Sample script

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

 /* Populate some data */
 $MyData->addPoints(array(24,25,26,25,25),"My Serie 1");
 $MyData->addPoints(array(10,20,53,45,40),"My Serie 2");

 /* Disable the "Drawable" flag for "My Serie 1" */
 $MyData->setSerieDrawable("My Serie 1",FALSE);

Only "My Serie 2" will be drawn by the charting functions.
Last updated on 10/20/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,20 seconds. Wiki revision 1.37.