Versions Compared

Key

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

...

If you do not specify the chartEngine attribute, the system default renderer is used reference doc explaining the default config in chartbeans_config.xml.

Disabling Themes

Themes is a feature that is currently under development. A theme is a preset, named set of attributes that can be applied to a chart by setting the theme attribute. For now, you will want to REMOVE the theme attribute from your generated chart definition, in order to have your palette color selections honored.

Element

Attribute

Description

chartModel

theme

Valid values are: Theme1, Theme2, Theme3, etc.*Optional

ChartBeans Model Generator Utility

The ChartBeans model generator utility is packaged with the ChartBeans Java library (pentaho-charting-x.x.x.jar). This library can be found in the WEB-INF/lib directory of the Pentaho BI Server.

The utility is a Java command line application that allows you to input any number of chart types, and will generate the full-featured XML chart definition for each type and output it to the console. Recognized string parameters for the chart types are:

  • BAR
  • HBAR (for horizontal bar)
  • LINE
  • PIE
  • AREA
  • DIAL
  • SCATTER (not fully functional as of this writing)

The following example would generate chart model definitions for a bar, line and pie chart and output the models to the console:

Code Block

java GenBarChartDefinition BAR LINE PIE