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 script beforeDrawDataPointLabel question
Migrateduser
<p>Hello ,</p>
<p> </p>
<p>probably a newbie question :</p>
<p> </p>
<p>i m trying to set the alignment for a PieChart label .</p>
<p> </p>
<p>i m able to get it but don't find how to set it without error.</p>
<p> </p>
<p>i tryed :</p>
<p> </p>
<p>function beforeDrawDataPointLabel( dph, label, icsc )<br>
{<br>
importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);<br>
<br>
<br>
toto = label.getCaption().getFont().getAlignment().getHorizontalAlignment();<br>
label.getCaption().setValue(toto);</p>
<p>
// label.getCaption().getFont().getAlignment().setHorizontalAlignment(HorizontalAlignment.LEFT);<br>
<br>
}</p>
<p> </p>
<p> </p>
<p>all label of the pie chart display "center" but when i try to set it i get this error message</p>
<p> </p>
<div>The following items have errors:</div>
<div>
<div> </div>
<div>Chart Grapha-MarketByBrandLast:</div>
<div><span>+ </span>ReferenceError: "HorizontalAlignment" is not defined at line 51 of chart script:''</div>
<div> </div>
<div> </div>
<div>did i miss an import package or i m not doing right</div>
<div> </div>
<div> </div>
<div>any idea ???</div>
<div> </div>
<div>thanks in advance</div>
<div> </div>
<div> </div>
</div>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet