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
Actual value and percentage
Migrateduser
<p>I had done a Report with chart so in that they was a parameter like Type...with value like Actual value and percentage...so to show a percentage i have wrote a script like </p><p> </p><p> </p><div><pre class="_prettyXprint">importPackage(Packages.org.eclipse.birt.chart.model.attribute);importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );function beforeDrawSeries( series, isr, icsc ){if(series.getSeriesIdentifier() == "Series 1"){labelType = icsc.getExternalContext().getScriptable().getParameterValue("Types");if(labelType == "Percentage"){series.getDataPoint().getComponents().get(0).setType(DataPointComponentType.PERCENTILE_ORTHOGONAL_VALUE_LITERAL);}}}</pre></div><div> </div><div> it had show value like in screenshot....but my requirement like the value is 75000,1015,1212,1352, it have to show in bar chart like 75%,25%,10%,7% ..how to change like this...</div>
Find more posts tagged with
Comments
There are no comments yet