Example usage for com.google.gwt.visualization.client.visualizations Gauge Gauge

List of usage examples for com.google.gwt.visualization.client.visualizations Gauge Gauge

Introduction

In this page you can find the example usage for com.google.gwt.visualization.client.visualizations Gauge Gauge.

Prototype

public Gauge() 

Source Link

Usage

From source file:de.uni_koeln.spinfo.maalr.webapp.ui.admin.client.general.CpuGauge.java

License:Apache License

public CpuGauge() {
    chart = new Gauge();
    data = DataTable.create();/*from  w ww  . j  a  v a2  s .  co m*/
    data.addColumn(ColumnType.STRING, "Label");
    data.addColumn(ColumnType.NUMBER, "Value");
    data.addRows(1);
    data.setValue(0, 0, "");
    options = Gauge.Options.create();
    com.google.gwt.visualization.client.formatters.NumberFormat.Options loadOptions = NumberFormat.Options
            .create();
    loadOptions.setFractionDigits(2);
    nf = NumberFormat.create(loadOptions);
    initWidget(chart);
}