Versions Compared

Key

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

Beispiel:

...

Anchor
Data
Data
Optimale Datenstruktur (Datenbank):

...

Optionen und Properties:

Konfiguration allgemein

Properties
Orientation

The orientation of the chart. When set to'vertical', rotates the axes of the chart so that (for instance) a column chart becomes a bar chart, and an area chart grows rightward instead of up:

Code Block
languagejava
themeEclipse
this.barChart.setOrientation(Orientation.VERTICAL);


StackMode

The options for isStacked are:

  • false — elements will not stack. This is the default option.
  • true — stacks elements for all series at each domain value.
  • 'percent' — stacks elements for all series at each domain value and rescales them such that they add up to 100%, with each element's value calculated as a percentage of 100%.
  • 'relative' — stacks elements for all series at each domain value and rescales them such that they add up to 1, with each element's value calculated as a fraction of 1.
  • 'absolute' — functions the same as isStacked: true.
Code Block
languagejava
this.barChart.setStackMode(StackMode.TRUE);


Achsenkonfiguration

Properties
AxisTitlePosition

Where to place the axis titles, compared to the chart area. Supported values:

Code Block
languagejava
barChart.setAxisTitlesPosition(AxisTitlesPosition.IN);


HAxis / VAxis

An object with members to configure various horizontal axis elements. To specify properties of this object, you can use object literal notation, as shown here:

Code Block
languagejava
themeEclipse
firstline1
linenumberstrue
Axis haxis= Axis.Builder()
	.slantedText(true)
	.direction(Direction.REVERSE)
	.minorGridlines(GridLines.New("red", 5))
	.format("currency").build();

barChart.setHAxis(haxis);

More detailed information about Axis see: https://developers.google.com/chart/interactive/docs/gallery/barchart#bar-styles

Anchor
Colors
Colors
Konfiguration Farben 

Properties
colors

The colors to use for the chart elements. An array of strings, where each element is an HTML color string, for example:colors:['red','#004411'].

Code Block
languagejava
themeEclipse
List<String> colors= Arrays.asList("#FFFFFF", "Red", "#F4g6uz");
barChart.setColors(colors);


Konfiguration von Texten und Legenden siehe API Allgemein

...