Hello,

After lots of work I've built my array from a mysql table, sent it
from the backend to the html page, which in turn sends it to the
javascript function in which my dataTable is stored. Currently I
simply json_encode my array which turns out to look like this.

{"humanNade0":{"kills":132,"deaths":
84,"name":"humanNade"},"needleRifle1":{"kills":206,"deaths":
46,"name":"needleRifle"},"dmr2":{"kills":304,"deaths":
112,"name":"dmr"},"plasmaLaunch3":{"kills":70,"deaths":
19,"name":"plasmaLaunch"}

Weapon Type : Kills : Deaths
Frag Grenade 132 84

etc.

Google wants it in this format, and I cannot figure out how to convert
my array to it.

          {c:[{v: 'Eat'}, {v: 2}]},
          {c:[{v: 'Commute'}, {v: 2, f: '2.000'}]}]};

So my main question is if there is anything I can do JS side to alter
my array? Or do I have to change this back at the source php files?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to