Hello everyone,
I have a problem. I'm trying to generate a chart with data from a
file. But from the client I can use java.io. *.
final DataTable data = DataTable.create();
data.addColumn(ColumnType.DATETIME, "DateTime");
data.addColumn(ColumnType.NUMBER, "TITLE");
data.addColumn(ColumnType.STRING, "title1");
data.addColumn(ColumnType.STRING, "text1");
data.addRows(6);
try{
/*data.setValue(0, 0, new Date(1231705822));
data.setValue(0, 1, 10000);
data.setValue(1, 0, new Date(1231705826));
data.setValue(1, 1, 14045);
data.setValue(2, 0, new Date(1231705831));
data.setValue(2, 1, 55022);
data.setValue(3, 0, new Date(1231705836));
.
.
.*/
/****************This is the idea********************
BufferedReader bf = new BufferedReader(new
FileReader("datos.txt"););
int i=0;
while ((sCadena = file.readLine())!=null) {
data.setValue(i, 0, new Date(1231705822));
data.setValue(i, 1, 10000);
i++;
}
} catch (JavaScriptException ex) {
GWT.log("Error creating data table - Date bug on mac?", ex);
}
*/
"
I thought to read it through an RPC, but I see a problem, the file
size is variable (very large) and must return a string or an array too
long.
How you would solve this problem?
It can generate a graph of the server?
Many thanks in advance.
Xavier
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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.