Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEclipse
firstline1
linenumberstrue
//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);

...

Code Block
languagejava
themeEclipse
firstline1
titlemodel.addCategory(String value);
linenumberstrue
model.addXCategoryaddCategory("Year");

//Parameter 1 ("Year"): definiert die Beschriftung der X-Achse

model.addYCategory("RapidClipse");
model.addYCategoryaddCategory("XDEV 5");

//Parameter 1 ("RapidClipse"): definiert die Beschriftung und wird als Mapping Parameter und Gruppierung verwendet wird

...