...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
final ChartArea areachartArea = new ChartArea(); area.setHeigth.New("100"); //Höhe des Pie area.setWidth(, "100"); //Breite des Pie area.setLeft("100"); //Abstand des Pie von Links in Pixel area.setRight("100, "500", "500"); //Abstand desParameter Piefür vonAbstand Linkslinks, inrechts Pixel area.setTop("100"); //Abstandund Höhe, Breite des PieCharts von Links in Pixel areaChart this.chart.setChartArea(areachartArea); |
Beispiel:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
//Definieren eines Backgroundstyles final BackgroundStyle style = new BackgroundStyle(); style.setFill("white"); style.setStroke("black"); style.setStrokeWidth(10); //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(XdevChartOptions.POSITION_BOTTOM); legendOptions.setMaxLines(5); legendOptions.setAlignment(XdevChartOptions.ALIGNMENT_CENTER); //Zuweisen der Konfiguration für Beschriftungen Chart.setBackgroundColor(style); Chart.setTitleTextStyle(textStyle); Chart.setLegend(legendOptions); |
...