...
In this article, the Pentaho ChartBeans project is introduced. Pentaho ChartBeans is a wrapper around other existing "chart engines" (such as JFreeChart and Open Flash Chart). Wrapping these " chart engines " creates a single way of expressing charts.
...
The org.pentaho.chart.core.ChartDocument
class is a Java representation of a Pentaho ChartBeans XML document. It is a tree of org.pentaho.chart.core.ChartElement
instances. A chart document includes elements like title, series, and plot. Note that the chart document references (or inlines) style information--; see next section.
Chart Styling: the Chart CSS
Pentaho ChartBeans uses Cascading Style Sheets (CSS) to style charts. Pentaho ChartBeans is not limited to the W3C's style attributes (although it attempts to use them where appropriate, for familiarity). By using CSS, Pentaho ChartBeans allows you to completely separate chart structure and style. You can use external style sheets , and inline selectors, as well as class and style attributes. Using an external style sheet would allow an organization to create a consistent look to for all of its charts.
Example
...