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

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

Introduction

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

Prototype

public ImageLineChart(AbstractDataTable data, Options options) 

Source Link

Usage

From source file:com.google.gwt.visualization.sample.visualizationshowcase.client.ImageLineDemo.java

License:Apache License

public Widget getWidget() {
    Options options = Options.create();
    options.setShowCategories(true);
    return new ImageLineChart(Showcase.getCompanyPerformance(), options);
}

From source file:org.jax.drakegenetics.gwtclientapp.client.MetabolismChart.java

License:Open Source License

private void updateChart() {
    this.absolutePositionsPanel.clear();
    this.lineChart = null;

    if (this.metabolismData != null) {
        this.lineChart = new ImageLineChart(this.metabolismDataToDataTable(), this.createLineChartOptions());
        if (this.pixelHeight >= 1 && this.pixelWidth >= 1) {
            this.lineChart.setPixelSize(this.pixelWidth, this.pixelHeight);
        } else {/*  ww  w. ja  v  a  2  s.c  om*/
            this.lineChart.setPixelSize(this.absolutePositionsPanel.getOffsetWidth(),
                    this.absolutePositionsPanel.getOffsetHeight());
        }
        this.absolutePositionsPanel.add(this.lineChart, 0, 0);
    }
}