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#DataTable



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.html
>
> 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.

Reply via email to