I've created a PIE chart using jquery-sparline.
Pie Chart :
$(".sparkline").sparkline([2,1], {
type: 'pie',
width: '100',
height: '100',
sliceColors: ['#F2441D','#fff'],
borderWidth: 3,
borderColor: '#F2441D'});
And I have a PostgreSQL database server.
Suppose I write this query select "Group", COUNT(*) from test group by "Group".
My result will be something like this.
Label Count Group1 244 Group2 125
Now I need to replace these with value 2 and 1 in the javascript codes.
I'm using PHP over here.
Someone help me on how to do it.