Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Resize of chart
Ingo
Hi,
just a short question...
right now I'm trying to resize some charts dynamically in the beforeGeneration function.
function beforeGeneration( chart, icsc )
{
var chartHeight = icsc.getExternalContext().getScriptable().getParameterValue("chartHeight");
var chartWidth = icsc.getExternalContext().getScriptable().getParameterValue("chartWidth");
chart.getBlock().getBounds().setHeight(chartHeight );
chart.getBlock().getBounds().setWidth(chartWidth );
}
Everything works fine except the fact that the given parameters do not reflect the real size of the chart. When I enter 1000 for the width, I get a chart size which is much bigger that 1000px. I try to maximize the chart size depending on the current browser window size, but once again;
When I set the browser window sizes, the outcoming chart is much bigger that the actual window.
How can set the "real" overall size of the chart?
Thanks,
Ingo
Find more posts tagged with
Comments
alex520
I think you may interest in <br />
<a class='bbc_url' href='
http://birtworld.blogspot.com/2008/04/birt-resizing-charts.html'>BIRT
World: BIRT Resizing Charts</a>
Ingo
yeah, I already know that link. But nevertheless, this does not answer my question...the resizing works great, but not with the correct sizes.
CBR
The report itself has a property defaultUnits. The default is set to inch. So you should set this property to px or use corresponding methods in chart scripting to set chartWidth and chartHeight explicitly as size in pixel.