use of com.vaadin.v7.addon.charts.model.ContainerDataSeries in project charts by vaadin.
the class ChartWithExternalContainer method createContainerView1.
private ContainerDataSeries createContainerView1(Container vaadinContainer) {
ContainerDataSeries container = new ContainerDataSeries(vaadinContainer);
container.setName("Order item quantities");
container.setPlotOptions(new PlotOptionsPie());
container.setYPropertyId(ExampleUtil.ORDER_QUANTITY_PROPERTY_ID);
container.setNamePropertyId(ExampleUtil.ORDER_DESCRIPTION_PROPERTY_ID);
return container;
}
use of com.vaadin.v7.addon.charts.model.ContainerDataSeries in project charts by vaadin.
the class ContainerWithLotsOfData method createContainer.
@SuppressWarnings("unchecked")
private ContainerDataSeries createContainer() {
IndexedContainer vaadinContainer = new IndexedContainer();
ContainerDataSeries container = new ContainerDataSeries(vaadinContainer);
vaadinContainer.addContainerProperty("y", Number.class, null);
for (int i = 0; i < getContainerData().length; i++) {
Item item = vaadinContainer.addItem(i);
item.getItemProperty("y").setValue(getContainerData()[i]);
}
container.setName("USD to EUR");
container.setPlotOptions(new PlotOptionsArea());
container.setYPropertyId("y");
return container;
}
Aggregations