Versions Compared

Key

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

...

The ChartBeansSystemListener will look to the chartbeans-_config.xml configuration file (in <solutions>system/chartbeans directory) for a series of beans that identify the plugin classes to load and hand over to the ChartFactory. The entries look similar to the example below:

Code Block
xml titlechartbeans-config.xml
	<beanConfig>
  
		<bean id="FlashChartEngine" class="org.pentaho.chart.plugin.openflashchart.OpenFlashChartPlugin"/>
 
		<bean id="JFreeChartEngine" class="org.pentaho.chart.plugin.jfreechart.JFreeChartPlugin"/>
	</beanConfig>

The example code above loads the two default chart plugins that exist in the platform today - the Flash chart plugin and the JFreeChart chart plugin.

...

Code Block
xml titleOverriding Subclass in plugin.xml File

   
<bean id="JFreeChartEngine" class="org.blah.charts.MyJFreeChartPlugin"/>

...