Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Display X - axis labels as bi-yearly
Migrateduser
<p>Hi All,</p><p>I'm using Actuate BIRT Designer professional 11.0.4, currently I'm working on line chart in that I'm displaying the X - axis date labels as monthly, quarterly, yearly up to end date.
And its working fine, but I've another requirement that I want to display bi-yearly also. For that I'm using below code:</p><p> </p><p>xAxis.getScale().setUnit(ScaleUnitType.YEARS_LITERAL);
xAxis.getScale().setStep(2.0);</p><p> </p><p>This is also working fine, but in some scenarios skipping 1 date interval at the end. for eg.(here my end date is 12/31/2010):
X axis labels: 12/31/2001, 12/31/2003, 12/31/2005, 12/31/2007,12/31/2010.
So in the above time periods it skipps the 12/31/2009.
I want to display like below
X axis labels: 12/31/2001, 12/31/2003, 12/31/2005, 12/31/2007, 12/31/2009, 12/31/2010.</p><p> </p><p> </p><p>Any help would be appreciated. Thanks in advance.</p><p>Any updates?</p>
Find more posts tagged with
Comments
There are no comments yet