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

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

Introduction

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

Prototype

public PieChart() 

Source Link

Usage

From source file:org.gss_project.gss.admin.client.ui.VisualizationPanel.java

License:Open Source License

/**
 *
 *///from ww w.  j a v a2s .  co  m
public VisualizationPanel() {
    final VerticalPanel vp = new VerticalPanel();
    vp.getElement().getStyle().setPropertyPx("margin", 15);
    userCountChart = new PieChart();
    userCountChart.addStyleName("stats");
    fileCountChart = new PieChart();
    fileCountChart.addStyleName("stats");
    fileSizeChart = new PieChart();
    fileSizeChart.addStyleName("stats");

    lastWeekChart = new PieChart();
    lastWeekChart.addStyleName("stats");
    lastMonthChart = new PieChart();
    lastMonthChart.addStyleName("stats");
    bandwithChart = new PieChart();
    bandwithChart.addStyleName("stats");
    HorizontalPanel row1 = new HorizontalPanel();
    HorizontalPanel row2 = new HorizontalPanel();

    row1.add(userCountChart);
    row1.add(fileCountChart);
    row1.add(fileSizeChart);

    row2.add(lastWeekChart);
    row2.add(lastMonthChart);
    row2.add(bandwithChart);
    vp.add(row1);
    vp.add(row2);
    initWidget(vp);
}