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

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

Introduction

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

Prototype

public LineChart() 

Source Link

Usage

From source file:com.google.speedtracer.latencydashboard.client.MarkTimelineChart.java

License:Apache License

public MarkTimelineChart(LatencyDashboardChart.Resources resources, String measurementName, String[] events,
        Gauge.Options gaugeOptions) {//  w  ww  .j a  v a2s.c  o m
    super(resources, displayEventName(measurementName));
    this.measurementName = measurementName;
    this.gaugeChart = new RightGaugeChart(resources, gaugeOptions);
    chartPanel.addEast(gaugeChart, CHART_HEIGHT);
    this.leftChart = new LineChart();
    chartPanel.add(leftChart);

    if (events != null) {
        this.events = events;
    } else {
        this.events = emptyEvents;
    }
}

From source file:org.jbpm.form.builder.ng.model.client.form.items.LineGraphFormItem.java

License:Apache License

@Override
public Widget cloneDisplay(Map<String, Object> data) {
    LineChart chart = new LineChart();
    populate(chart);//ww w  . j  a  v a 2s . c o m
    if (getInput() != null && getInput().get("name") != null) {
        DataTable dataTable = DataTable.create();
        Object myData = data.get(getInput().get("name"));
        populateInput(dataTable, myData);
        chart.draw(dataTable);
    }
    super.populateActions(chart.getElement());
    return chart;
}

From source file:org.jbpm.formbuilder.client.form.items.LineGraphFormItem.java

License:Apache License

@Override
public Widget cloneDisplay(Map<String, Object> data) {
    LineChart chart = new LineChart();
    populate(chart);/*from   w w  w  .  ja va2s  . c  om*/
    if (getInput() != null && getInput().getName() != null) {
        DataTable dataTable = DataTable.create();
        Object myData = data.get(getInput().getName());
        populateInput(dataTable, myData);
        chart.draw(dataTable);
    }
    super.populateActions(chart.getElement());
    return chart;
}