Try: var data1 = google.visualization.arrayToDataTable([@Html.raw(rows)]);
Also, you're going to need to do some formatting of your dates. Do you want them input as strings or Date objects? On Friday, February 22, 2013 5:02:32 PM UTC-5, Matevz Uros Pavlic wrote: > > Hi again, > > i changed the parser a bit, so that the output looks the same form as the > google Charts tutorial....still no luck... > > var data = > google.visualization.arrayToDataTable(*[['Datum', > 'Sava', 'RPWS1'], * [29.8.2012 18:00:00, 161.87, 161.79], > [29.8.2012 > 20:00:00, 161.86, 161.77], [29.8.2012 22:00:00, 161.89, 161.79], [30.8.2012 > 0:00:00, 161.95, 161.84], [30.8.2012 2:00:00, 161.94, 161.85], > > The only thing that could be wrong is bolded text....i guess the column > names are parsed strange? > > > > 2013/2/22 Matevž Uroš Pavlič <[email protected] <javascript:>> > >> Hi, >> >> getting close now.... >> >> Everything compiles, but nothing shows in browser. Atttahed is render >> file from server.... >> >> m >> >> 2013/2/22 asgallant <[email protected] <javascript:>> >> >>> Try: >>> >>> String rows = ""; >>> >>> >>> On Friday, February 22, 2013 3:50:01 PM UTC-5, Matevz Uros Pavlic wrote: >>>> >>>> Hi, that solved that particular problem, but i have a new one...saying >>>> that : >>>> * *CS1729: 'string' does not contain a constructor that takes 0 >>>> arguments >>>> >>>> I guess : >>>> String rows = new String(); >>>> >>>> Can not be empty.. >>>> >>>> Any ideas? >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to >>> [email protected]<javascript:> >>> . >>> To post to this group, send email to >>> [email protected]<javascript:> >>> . >>> Visit this group at >>> http://groups.google.com/group/google-visualization-api?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
