...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
//Erstellen Model und hinzufügen der Kategorien final XdevComboChartModelChartModel model = new XdevComboChartModelChartModel.New(); model.addCategory("2017"); model.addCategory("2018"); //Füllen der Items model.addItem("Beverages", "2017", 560 .addColumn(Column.New(Type.STRING, "year", "Jahr")) .addColumn(Column.New(Type.NUMBER, "sales", "Verkäufe")) .addColumn(Column.New(Type.NUMBER, "customer", "Kunden")); model.addRow("2014", 1500, 450); model.addItemaddRow("Beverages2015", "2018"805, 560685); model.addItemaddRow("Condiments2016", "2017"920, 530980); model.addItemaddRow("Condiments2017", "2018"1250, 530520); //Setzen des Models comboChart.setModel(model); |
...