Options options;
DataTable data = createDailyActivities();
options = Options.create();
options.setLegend(LegendPosition.BOTTOM);
RootPanel.get().add(new PieChart(data, options));
options = Options.create();
options.setLegend(LegendPosition.TOP);
RootPanel.get().add(new PieChart(data, options));
options = Options.create();
options.setLegend(LegendPosition.LEFT);
RootPanel.get().add(new PieChart(data, options));
options = Options.create();
options.setLegend(LegendPosition.RIGHT);
RootPanel.get().add(new PieChart(data, options));
options = Options.create();
options.setLegend(LegendPosition.NONE);
RootPanel.get().add(new PieChart(data, options));
options = Options.create();
options.setLegend(PieLegendPosition.LABEL);
RootPanel.get().add(new PieChart(data, options));
}
});
}