If your string is formatted as a javascript array, you can try parsing it as JSON:
var data = google.visualization.arrayToDataTable(JSON.parse(ar)); On Saturday, October 27, 2012 4:07:04 PM UTC-4, Jishnu U wrote: > > Hi > > Im working on a website that uses google Line charts. Im receiving data > from SQL table using a library function which we made that returns data as > string array. > How can I use this array to plot in line chart. > I tried using > var data = google.visualization.arrayToDataTable(ar); > but as all column and row are string I cant get the plot. > Does anyone has any solution to it?? > -- 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/-/PjU604ZgKCEJ. 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.
