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
How to show first and last label in X-Axis?.
Migrateduser
<p>I Searched in forum but did not find a solution. </p>
<p> </p>
<p>I wanted to show first and last label in X Axis. </p>
<p> </p>
<p>I tried following but I'm unable to find out which is first and last label. Labels are dynamic. </p>
<p> </p>
<div>function beforeDrawAxisLabel( axis, label, icsc )</div>
<div>{</div>
<div> </div>
<div>importPackage( Packages.org.eclipse.birt.chart.model.data.impl );</div>
<div>importPackage(Packages.org.eclipse.birt.chart.model.component.impl);</div>
<div>importPackage(Packages.org.eclipse.birt.chart.model.attribute);</div>
<div>importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);</div>
<div> </div>
<div>if( axis.isCategoryAxis() )</div>
<div> {</div>
<div> </div>
<div> //I was able to set values but how to identify if it is first or last one?. </div>
<div> //label.getCaption().setValue("");</div>
<div> </div>
<div> </div>
<div>}</div>
<div> </div>
<div>}</div>
Find more posts tagged with
Comments
There are no comments yet