Login Register Wishes Forum About
Language Reference » Dataset functions » reverseSerie
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
reverseSerie - Reverse data serie values

This function allow you to reverse the content of the specified data serie from your pData object.

Calling this function

Where :

Series is the name of the serie. (or an array of names)

Sample script

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

 /* Populate some data */
 $MyData->addPoints(array(1,2,3,4),"My Serie 1");

 /* Reverse "My Serie 1" contents */
 $MyData->reverseSerie("My Serie 1");

This will reverse the content of "My Serie 1". The data array will now contains :
    [0] => 4
    [1] => 3
    [2] => 2
    [3] => 1
Last updated on 10/20/2009 
by Jean-Damien 
Linked resources
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.