More info... the Google Chrome developper tools identify this problem:
(syntax error: unexpected number)...
var dataD = 2013-10-07,1.0,000001
2013-10-07,1.0,000003
2013-10-07,1.0,000005
2013-10-07,1.0,000007
2013-10-07,1.0,000009;
Quinta-feira, 10 de Outubro de 2013 12:43:23 UTC+1, Rui Maia escreveu:
>
> On a Java class:
>
> public DataTable GetDT(...) {
> // Create a data table.
> DataTable result = new DataTable();
> ArrayList<ColumnDescription> cd = new ArrayList<ColumnDescription>();
> cd.add(...);
> cd.add(...);
> cd.add(...);
> result.addColumns(cd);
> ....
> return result;
> }
>
>
> ....on JSP
>
> <script type='text/javascript' src='https://www.google.com/jsapi
> '></script>
>
> <script>
> // Load the Visualization API and the piechart package.
> google.load('visualization', '1', {packages:['corechart', 'table']});
> google.setOnLoadCallback(drawTable);
> function drawTable() {
> var dataD = <%=myDBUtils.GetTransfersByDateRangeDailyDT(null, null,
> startDate, endDate)%>;
> var optionsExtD = {
> title: 'xxxxxx',
> hAxis: {title: 'xxxx', titleTextStyle: {color: 'red'}}
> };
> var chartD = new
> google.visualization.Table(document.getElementById('table_div-D'));
> chartD.draw(dataD, optionsExtD);
> }
> </script>
>
>
> NOT WORKING. Any HELP?
>
> TKX
>
>
>
--
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.
For more options, visit https://groups.google.com/groups/opt_out.