here is what I use, the best i could find so far.. i use with json for pull data out of db using php
Click Here
gabrielcastillo
Junior Poster in Training
54 posts since Apr 2012
Reputation Points: 0
Solved Threads: 5
Skill Endorsements: 0
I'd recommend JqPlot... Although there are a few to choose from.
iamthwee
Posting Genius
6,254 posts since Aug 2005
Reputation Points: 1,567
Solved Threads: 476
Skill Endorsements: 33
I must say, HighCharts has excellent support, and I've been very happy with it for quite some time.
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
You don't have to use json, but for performance and easy maintenance I would recommend you use json.
Here is a simple function showing how to get the data and returning json encode string.
function get_chart_data(){
$q = mysql_query("SELECT * FROM users");
while($res = mysql_fetch_assoc($q)){
$data = json_encode($res);
}
return $data;
}
$data = get_chart_data();
echo $data;
gabrielcastillo
Junior Poster in Training
54 posts since Apr 2012
Reputation Points: 0
Solved Threads: 5
Skill Endorsements: 0
Actually, that should be:
function get_chart_data() {
$q = mysql_query("SELECT * FROM users");
while($res = mysql_fetch_assoc($q)){
$data[] = $res;
}
return json_encode($data);
}
$data = get_chart_data();
echo $data;
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
Thanks for the correction MOD.. I originally had that as my function but I second guessed myself last min.
gabrielcastillo
Junior Poster in Training
54 posts since Apr 2012
Reputation Points: 0
Solved Threads: 5
Skill Endorsements: 0