The attached example contains chart event handler code to insert a data table below a chart with the table columns lining up with the chart categories.<br />
It works with bar, line, area, scatter, tube, cone and pyramid charts drawn in 2D or 2D with depth.<br />
<br />
To use:
<br />
- Add a reference to adnpbirt1.0.jar to your report<br />
- Set your chart eventhandler to com.adnp.birt.eventhandlers.TableChartAdapter<br />
<br />
The table borders and background are taken from the legend formatting: configure the table format by enabling the legend, setting the background and line properties and then hiding the legend (the table makes the legend redundant). The table text formatting is copied from the x-axis labels.<br />
<br />
This was written for Actuate BIRT Report Designer Professional 11SP3, BIRT 2.6.3.