was wondering if I have the following table from the query
SELECT kodnegeri.KodNegeriText AS Negeri, kategorisukan.KategoriSukantext AS Kategori,
COUNT(*) AS Total
FROM association
INNER JOIN kodnegeri ON association.KodNegeri = kodnegeri.KodNegeri
INNER JOIN kategorisukan ON association.KodKategoriSukan = kategorisukan.KategoriSukan
GROUP BY kodnegeri.KodNegeriText, kategorisukan.KategoriSukantext
How can i feed the query directly into google column chart like the one in example below :
I understand that the column chart data format requires the first column to be type string and the remaining type number. I've also done some charts that only consisted of two columns so there's no problem.
array('label' => 'Tahun', 'type' => 'string'),
array('label' => 'Jumlah Persatuan', 'type' => 'number')
Can anyone help on how to produce such graph like in the example where it shows for each year (Negeri in my case), there are a few other data (ie : country, whereas in my case is Kategori)