//Erstellen Model und hinzufügen der Kategorien
XdevAreaChartModel model = new XdevAreaChartModel();
model.addXCategory(ColumnType.STRING);
model.addYCategoryaddCategory("RapidClipse");
model.addYCategoryaddCategory("XDEV 5");
//Füllen der Items
model.addItem("RapidClipse", "2015", 6500);
model.addItem("RapidClipse", "2016", 4321);
model.addItem("RapidClipse", "2017", 9460);
model.addItem("RapidClipse", "2018", 7450);
model.addItem("XDEV 5", "2015", 1500);
model.addItem("XDEV 5", "2016", 2850);
model.addItem("XDEV 5", "2017", 685);
model.addItem("XDEV 5", "2018", 4850);
//Setzen des Models
areaChart.setModel(model); |