Welcome Guest Search | Active Topics |

Can I use jqchart with php/mysql?
pumog99
#1 Posted : Sunday, November 17, 2013 8:46:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/17/2013(UTC)
Posts: 1

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I am considering a chart program but I am not sure I I can use jqchart.
I get data using mysql (with PHP, not ASP).
So in this jqchart example for a line chart:

$('#jqChart').jqChart({
title: { text: 'Line Chart' },
series: [
{
type: 'line',
title: 'Series 1',
data: [[1, 62], [2, 60], [3, 68],
[4, 58], [5, 52], [6, 60], [7, 48]]
},
{
type: 'line',
title: 'Series 1',
data: [[1, 46], [2, 40], [3, 62],
[4, 65], [5, 60], [6, 36], [7, 70]]
}
]
});

But this is an example where you know the data which is not real-world. How would I insert data from a query?
The form I have is in an array. like $row[field]
I would get each value in $row[field] with a while loop. How do I put a while loop into the jqchart script?
Dragan
#2 Posted : Monday, November 18, 2013 6:47:59 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.075 seconds.