//Erstellen Model und hinzufügen der Kategorien
final ChartModel model = ChartModel.New()
.addColumn(Column.New(Type.STRING, "product", "Produkte"))
.addColumn(Column.New(Type.NUMBER, "sales", "Verkäufe"))
.addColumn(Column.New(Type.NUMBER, "customer", "Kunden"));
//Füllen der Items
model.addRow("RapidClipse", "20156500", 6500);
model.addRow("RapidClipse", "20164321", 4321);
model.addRow("RapidClipse", "20179460", 9460);
model.addRow("RapidClipse", "20187450", 7450);
model.addRow("XDEV 5", "20151500", 1500);
model.addRow("XDEV 5", "20162850", 2850);
model.addRow("XDEV 5", "2017685", 685);
model.addRow("XDEV 5", "20184850", 4850);
//Setzen des Models
areaChart.setModel(model); |