Language Reference » Dataset functions » getData
|
|
Latest updates
Toolbox
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 )
© 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.
|