serializing data with google charts api

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-05-20T07:55:39Z Indexed on 2010/05/20 8:00 UTC
Read the original article Hit count: 427

Filed under:
|
|
|

I have the following google chart code that im working with as an example:

Type: Line
Dimensions: 270x150
283,285,295,204,340,#41C0E4
64,120,130,170,175,180,#3962C2
1,2,5,12,28,34,#005E91
Bottom Label: test

The following is the URL which generates the image below

http://chart.apis.google.com/chart?chs=270x150&cht=lc&chtt=&chd=s:zz1l9,LWXffg,AABCFG&chco=41C0E4,3962C2,005E91&chxl=0:|test|&chxt=x

alt text

My question is that i dont see the actual data in the url, but i see this

chd=s:zz1l9,LWXffg,AABCFG

That looks like serialized data, but im wondering how exactly that works, or how to encode/decode that to make the input of chart data dynamic via php.

© Stack Overflow or respective owner

Related posts about google

Related posts about google-charts