Versions Compared

Key

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

...

Code Block
languagejava
themeEclipse
firstline1
linenumberstrue
//Erstellen einer Konfiguration für das Chart
XdevBarChartConfig config = new XdevBarChartConfig();

//Definieren eines Texstyles
final TextStyle textStyle = new TextStyle();
textStyle.setBold(true);
textStyle.setFontName("Arial");
textStyle.setFontSize(12);
textStyle.setItalic(true);
textStyle.setColor("Red"); oder textStyle.setColor("#FFFFFF");

//Definieren eines Legendenstyles
LegendOptions legendOptions = new LegendOptions();
legendOptions.setTextStyle(textStyle);
legendOptions.setPosition("bottom"XdevChartOptions.POSITION_BOTTOM);
legendOptions.setMaxLines(205);
legendOptions.setAlignment("start"XdevChartOptions.ALIGNMENT_CENTER);

//Zuweisen der Konfiguration für Beschriftungen
config.setTitleTextStyle(textStyle);
config.setLegend(legendOptions);

...