...
Info | ||
---|---|---|
| ||
It is important to understand that the feature set described by the chart model is a SUPERSET of all supported rendering chart engines. So not every attribute will be honored by every rendering engine. The Javadoc for the renderers are a great place to look for the supported subset for the engine you are attempting to use. Also, check out the ~gmoran:chartEngine attribute, which allows you to quickly switch between renderers to test attribute support. |
...
You may also see these samples in action by running the action sequences in the BI Server samples under the folder bi-developers|chartbeans.
Sample Template Models
- ~gmoran:bar chart
- ~gmoran:line chart
- ~gmoran:horizontal bar chart
- ~gmoran:pie chart
- ~gmoran:area chart
- ~gmoran:dial chart (only JFreeChart renders a dial. No OpenFlashCharts dial rendering in open source.)
...
While you can hunt through the Javadoc to read about the chart model, many of the elements and attributes of the model are named intuitively enough to deduce their meaning. Included here are some key attributes and their valid values that will speed your progress in getting the chart you are looking for.
...
The ChartBeans model generator utility is packaged with the ChartBeans Java library (pentaho-chartingchartbeans-x.x.x.jar). This library can be found in the WEB-INF/lib directory of the Pentaho BI Server.
...
Code Block |
---|
java -cp .;xstream-1.3.1.jar;jettison-1.0.1.jar;pentaho-chartingchartbeans-TRUNK-SNAPSHOT.jar org.pentaho.chart.model.util.GenChartDefinition BAR LINE PIE |
...
- xstream-1.3.1.jar
- jettison-1.0.1.jar
- pentaho-chartingchartbeans.x.x.x.jar (fromt he platform)
...