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
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);

...

Code Block
languagejava
themeEclipse
firstline1
titlemodel.addItem(String value, String value2, Integer value3)
linenumberstrue
model.addRow("RapidClipse", "20187450", 7450);

//Parameter 1 ("RapidClipse"): Wert, welchen in der X-Achse angezeigt werden soll
//Parameter 2 ("2018"): Zuweisung zur jeweiligen vorher festgelegten Kategorie (Kategoriemapping)
//Parameter 3 (7450): Wert für die Y-Achse. Zulässige Datentypen: Integer, Double

...