pChart 2.x forum http://wiki.pchart.net/forum/ |
|
Data from array.. http://wiki.pchart.net/forum/viewtopic.php?f=1&t=39933 |
Page 1 of 1 |
Author: | sad [ Mon Oct 07, 2013 2:34 am ] |
Post subject: | Data from array.. |
Hi.. im new to this.. n i have a problem in getting data from an array.. I need to use to chart on my webpage..pie chart and vertical bar chart. my pie chart work just fine..here's my code. $myData = new pData(); foreach($data1 as $key=>$val){ $myData->addPoints($val); $myData->addPoints($key,"Labels"); $myData->setAbscissa("Labels"); } I use the same method for my bar chart.. But it didn't work.. how do i get the data for the bar chart?? if you need more information according to my problem pls ask.. Thanks in advance.. |
Author: | sad [ Mon Oct 07, 2013 3:56 am ] |
Post subject: | Re: Data from array.. |
i figured it out |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |