Thanks for reply. I rewrite the script to receive json script as well http://www.geostrona.pl/charts/chart2.html
But still there is a problem. When JSON string is hardcoded, everything works fine but when it comes from ajax, there is mistake. I checked that both strings are the same! On Dec 25, 2:30 pm, Roni Biran <[email protected]> wrote: > Hi and welcome, > > The DataTable object does not except multi-dimensional array as an input. > it accepts either a JSON string or a Rows/Cols JSON object. > You can find information on this > here:http://code.google.com/apis/chart/interactive/docs/reference.html#Dat... > > On Sun, Dec 25, 2011 at 2:42 PM, Michal Drozdz > <[email protected]>wrote: > > > > > > > > > Hi all! > > I have just started with google charts... > > I goal is to create a chart based on data from MySQL. I took this > > example: > >http://code.google.com/apis/chart/interactive/docs/gallery/areachart.... > > > and convert it into: > > >http://www.geostrona.pl/charts/chart.html > > > I wrote a script that returns "array of arrays" what is propper input > > of addRows(). Unfortunatery firebug says: > > > Row given with size different than 2 (the number of columns in the > > table). > > this.B[B]+" (the number of columns in ...t be either a number or an > > array"))}; > > > I do not know why. Both input arrays ("wsad"- that comes from MySQL > > and "dupa"- hardcoded are the same (alerts are checking types nad > > values). Wsad creates an error and hardcooded dupa works fine... > > > Help please! > > > -- > > 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. -- 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.
