Versions Compared

Key

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

...

Property

ChartWidth

Width of the chart, in pixels.

Code Block
languagejava
chart.setWidth("1000");

ChartHeight

Height of the chart, in pixels.

Code Block
languagejava
chart.setHeight("800");

EnableInteractivity

Whether the chart throws user-based events or reacts to user interaction. If false, the chart will not throw 'select' or other interaction-based events (but will throw ready or error events), and will not display hovertext or otherwise change depending on user input.

Code Block
languagejava
chart.setEnableInteractivity(true);

FontName

The default font face for all text in the chart. You can override this using properties for specific chart elements.

Code Block
languagejava
chart.setFontName("TimesNeewRoman");

FontSize

The default font size, in pixels, of all text in the chart. You can override this using properties for specific chart elements.

Code Block
languagejava
chart.setFontSize(12);

ForcelFrame

Draws the chart inside an inline frame. (Note that on IE8, this option is ignored; all IE8 charts are drawn in i-frames.)

Code Block
languagejava
chart.setForceIFrame(false);

ReverseCategories

If true, draws slices counterclockwise. The default is to draw clockwise.

Code Block
languagejava
chart.setReverseCategories(false);

Title

Text to display above the chart.

Code Block
languagejava
chart.setTitle("Chart");

TitlePosition

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

  • in - Draw the title inside the chart area.

  • out - Draw the title outside the chart area.

  • none - Omit the title.

Code Block
barChart.setTitlePosition(TextPosition.OUT);

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
List<String> colors= Arrays.asList("#FFFFFF", "Red", "#F4g6uz");
chart.setColors(colors);

Background

The background color for the main area of the chart. Can be either a simple HTML color string, for example: 'red' or '#00cc00'

Code Block
chart.setBackground(Background.Color("red"));
/*
 * Params = Bordercolor, Borderwidth, Backgroundcolor
 */
chart.setBackground(Background.StrokeFill("black", 5, "white"));

...