Using bar chart in GWT 2.x I can instantiate it just like the tutorial, but when I try to change it with a draw method I get nothing. What am I doing wrong?
private void randomData(BarChart bar) { bar.draw( updateTable() ); } private AbstractDataTable updateTable() { // Underlying data DataTable data = DataTable.create(); data.addColumn(ColumnType.STRING, "Item"); data.addColumn(ColumnType.NUMBER, "item per sec"); // now create some values String message = ""; final int MAX_VALUE = 10; int nit = Random.nextInt(MAX_VALUE) ; int gnat = Random.nextInt(MAX_VALUE) ; int pit = Random.nextInt(MAX_VALUE) ; data.addRows(3); data.setValue(0, 0, "Nits"); data.setValue(0, 1, nit); data.setValue(1, 0, "Gnats"); data.setValue(1, 1, gnat); data.setValue(2, 0, "Pits"); data.setValue(2, 1, pit); message += nit + " valu " + nit + " other " + gnat; //Window.alert(message); return data; } } ////////////////////// thanks. John -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.