You need to convert the array into a DataTable object.  I don't know what 
the ASP DataTable looks like, so I can't help with that, but if you post 
the javascript rendered by the server (open the page in a browser and view 
the source), then I can see what steps you will have to take to make it 
into a Visualization API DataTable.

On Sunday, November 11, 2012 2:34:22 PM UTC-5, Pradeep Bhat wrote:
>
>
>    So I'm trying to use this javascript with my asp.net website 
> https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
>
> I have an array in codebehind that has my data which i converted to a 
> multidimensional datatable like this.
>
> <in codebehind vb>Public Property datat As DataTable
> For outerIndex As Integer = 0 To 2
>     Dim newRow As DataRow = table.NewRow()
>     For innerIndex As Integer = 0 To 2
>
>
>             newRow(innerIndex) = Array(outerIndex, innerIndex)
>     Next
>     table.Rows.Add(newRow)Next
>
> datat = table
> <in asp>
> function drawChart() {
>     var data = <%=datat%>
>
>
> I always get an error datatable not defined.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/PsqMnD7emYIJ.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to