Contents
Login Register Wishes Forum About
Language Reference » Dataset functions » getData
Help topics
Latest updates
1998d  replaceImageMapTitle
1998d  replaceImageMapValues
1998d  createFunctionSerie
1998d  setAbsicssaPosition
1998d  negateValues
Toolbox
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
getData - Extract your pData contents

This function allow you to export the contents of your pData object in an array format. It can be used for debugging purpose assuming that you understand the pData array concept. You can learn more on it here.

Calling this function
getData();

There is no required parameters.

Sample script

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

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

 /* This will dump the pData structure contents */
 print_r($MyData->getData());

This will display something like :
Array
(
    [XAxisDisplay] => 680001
    [XAxisFormat] =>
    [XAxisName] =>
    [XAxisUnit] =>
    [Abscissa] =>
    [Axis] => Array
        (
            [0] => Array
                (
                    [Display] => 680001
                    [Position] => 681002
                )
        )
    [Series] => Array
        (
            [My Serie 1] => Array
                (
                    [Description] => My Serie 1
                    [isDrawable] => 1
                    [Picture] =>
                    [Max] => 4
                    [Min] => 1
                    [Axis] => 0
                    [Color] => Array
                        (
                            [R] => 188
                            [G] => 224
                            [b] => 46
                        )
                    [Data] => Array
                        (
                            [0] => 1
                            [1] => 2
                            [2] => 3
                            [3] => 4
                        )
                )
        )
    [Min] => 1
    [Max] => 4
)
Last updated on 11/02/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. 409 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.