Login Register Wishes Forum About
Language Reference » Dataset functions » setSeriePicture
Help topics
Latest updates
4693d  replaceImageMapTitle
4693d  replaceImageMapValues
4693d  createFunctionSerie
4693d  setAbsicssaPosition
4693d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
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.

This function output isn‘t implemented yet.

Calling this function

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"
Last updated on 12/25/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.