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.