![]() |
Language Reference » Dataset functions » setSeriePicture
|
|
Latest updates
Toolbox
Google AdSense
|
setSeriePicture - Associate a picture to a data serie This function allows you to a link a picture (most of the time an icon) to a data serie. This image will be used in the chart legend.
Calling this function
setSeriePicture($Series,$Picture); Where : Series is the name of the serie you want to associate a picture. (or an array of names)
Picture is the path to the serie picture. Sample script /* Create the pData object */ $MyData = new pData(); /* Populate some data */ $MyData->addPoints(array(24,25,26,25,25),"My Serie 1"); /* Associate the picture "pictures/icon.png" to "My Serie 1" */ $MyData->setSeriePicture("My Serie 1","pictures/icon.png"); This will associate the picture "pictures/icon.png" to "My Serie 1"
© 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,02 seconds. Wiki revision 1.37.
|