![]() |
Language Reference » Dataset functions » setSerieDrawable
|
|
Latest updates
Toolbox
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.
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.
© 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.
|