Hello, Hi saran,
The right place for this question would be the Visualization API Group. There's a link here: http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=VisualizationFAQ On Tue, Dec 16, 2008 at 4:52 AM, saran <saranpa...@gmail.com> wrote: > > hi everyone > > i am using GWT in my current project i have to display some values > using Gauge periodically . for that i used Timer class to get the > actual value from my database to be displayed in gauge and i created > a gauge by using the visualization plug-in for GWT(gwt- > visualization.jar 1.0) and i call that gauge creation method within > the timer > > initially gauge is displaying the values by getting the values from > database. after for few seconds(10-15 sec) the gauge is invisible and > not displayed inside the tabpanel. But i steadily get the value from > the database . > > i dont know the reason please send me the feedback and the > comments > > here is my code > > (Gauge creation method) > > private Widget createGauge(int s) { > > DataTable data = DataTable.create(); > > data.addColumn(ColumnType.STRING, "Label"); > data.addColumn(ColumnType.NUMBER, "Value"); > data.addRows(1); > data.setValue(0, 0, "CPU(%)"); > data.setValue(0, 1, s); > Gauge.Options option = Gauge.Options.create(); > > option.setHeight(500); > option.setWidth(400); > option.setGreenRange(71, 80); > option.setMinorTicks(10); > option.setRedRange(81, 100); > option.setYellowRange(61, 70); > > return new Gauge(data, option); > } > > > within the run method in timer class i call gauge creation method for > a period of seconds > > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---