Hi,<br />
<br />
I have a bar chart with flipped axis. Because I don't know how many vertical space the chart requires (depends on the size of the bound dataset rows) I set the height dynamically in 'onRender'<br />
<br />
function beforeGeneration( chart, icsc )<br />
{<br />
xAxis = chart.getBaseAxes()[0];<br />
yAxis = chart.getOrthogonalAxes( xAxis, true )[0];<br />
seriesDef = yAxis.getSeriesDefinitions().get(0);<br />
runSeries = seriesDef.getRunTimeSeries()[0];<br />
//Retrieve list of data values<br />
list = runSeries.getDataSet().getValues();<br />
chart.getBlock().getBounds().setHeight(list.length * 20 + 50) ; <br />
}<br />
<br />
This script works so far, but if the chart becomes larger than a page, BIRT does not insert a pagebreak into the chart. If I render the report in PDF format the chart has no page break and is cut at the end of a page, see screenshot.<br />
<br />
<img src='
http://farm5.static.flickr.com/4137/4862396349_88aa5bb26c_b.jpg' alt='Posted Image' class='bbc_img' /><br />
<br />
Any hints?<br />
<br />
Thx in advance<br />
Tom