View unanswered posts | View active topics It is currently Thu Mar 28, 2024 2:23 pm



Reply to topic  [ 2 posts ] 
Data from array.. 
Author Message
New pChart user
New pChart user

Joined: Fri Oct 04, 2013 10:01 am
Posts: 3
Post 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..


Mon Oct 07, 2013 2:34 am
Profile
New pChart user
New pChart user

Joined: Fri Oct 04, 2013 10:01 am
Posts: 3
Post Re: Data from array..
i figured it out :D


Mon Oct 07, 2013 3:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron