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
Chart - Changing label value position depending on it's value
Migrateduser
<p>Hello,</p>
<p> </p>
<p>I'm trying to change the label value position of a specific serie depending on it's value.</p>
<p> </p>
<p>In the sample report as attachment, my goal is to display outside serie 1 all values higher than 70.</p>
<p> </p>
<p>With the code :</p>
<pre class="_prettyXprint _lang-js">
importPackage(Packages.org.eclipse.birt.chart.model.attribute);
function afterDataSetFilled( series, dataSet, icsc )
{
if(series.getSeriesIdentifier() == "Series 1"){
series.setLabelPosition(Position.OUTSIDE_LITERAL);
}
}
</pre>
<p>I'm able to change the position of all labels of my series 1 and put them outside. But my need is to change the position only if the value is higher than X.</p>
<p> </p>
<p>Can you please help me to do it?</p>
<p> </p>
<p>Thank you in advance for you help.</p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet