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)
Script the label interval for a bar chart
Monma
I have built a parameterized bar chart that will lay more or less bars depending on a parameter called 'DataSize'. Depending on this parameter I can end up with too many labels and then Birt will drop some as it needs to render the chart. Is there a way to set the Interval field (defined in the label screen of the X-Axis) using a script that checks the value of the parameter to decide what value to assign it.
I am using BIRT 2.2.2 and know the report designer GUI well but I have not done any kind of scripting. Can someone plase help me with this? if you can spare the time show me the script and explain how to set it.
Best Regards.
Find more posts tagged with
Comments
JasonW
I just posted an example of how to do this using a report parameter and script.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/1117-set-chart-axis-label-interval-with-script/#description'>Set
Chart Axis Label Interval with Script - Designs & Code - BIRT Exchange</a><br />
<br />
Jason
Monma
Thank you. I appreciate your taking the time to do this.
Monma
Jason. This is great and I understand it. What is the best resource to learn scripting BIRT.
JasonW
Several places discuss Scripting:<br />
<br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php'>Report
Scripting</a><br />
<br />
You can also look at the books:<br />
<br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/birthelp.php'>How
to Get Help on Using BIRT</a><br />
<br />
And several BEX items containt PPTs that discuss it:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/deploying-birt-reports/1059-integrating-birt-ppt/#description'>Integrating
BIRT PPT - Other Resources - BIRT Exchange</a><br />
<br />
Jason