Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Chart page break
spacefrog
Hi,<br />
<br />
i have a GANTT chart where i set the height dynamically in the beforeGeneration function. This works great.<br />
<br />
<sub class='bbc'>public void beforeGeneration(Chart chart, IChartScriptContext context) {<br />
ChartWithAxes chartWithAxes = (ChartWithAxes) chart;<br />
Axis xAxis = chartWithAxes.getBaseAxes()[0];<br />
Axis yAxis = chartWithAxes.getOrthogonalAxes(xAxis, true)[0];<br />
SeriesDefinition seriesDef = yAxis.getSeriesDefinitions().get(0);<br />
GanttSeries runSeries = (GanttSeries) seriesDef.getRunTimeSeries().get(0);<br />
Object[] list = (Object[]) runSeries.getDataSet().getValues();<br />
chart.getBlock().getBounds().setHeight(list.length * 10);<br />
super.beforeGeneration(chart, <br />
}</sub><br />
<br />
<br />
The problem is that if the height is greater then the size of a page, the GANTT chart gets cut off instead of adding a page break. Is it possible to have a GANTT chart over multiple pages?<br />
<br />
Help is very welcome.<br />
<br />
Regards,<br />
/Stephan
Find more posts tagged with
Comments
mwilliams
Hi Stephan,
I just looked at this in BIRT 2.6.1. It looks like it will just get cut off if bigger than the page size. The only thing I can think of to do to get around this would be to create multiple charts and use filters to limit the data to each one or use a page size that fits your chart. You can always log a bug/enhancement request for charts being able to have page breaks at
http://www.birt-exchange.org/org/resources/bug-reporting/
.
thuston
The chart is a single image and probably won't ever have the ability to be cut and made into two separate objects.