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 - dynamically marker line
Migrateduser
<p>Hello!</p><p>I'm find in google... method "add dynamic marker line"</p><pre class="_prettyXprint">function beforeGeneration( chart, icsc ){importPackage(Packages.org.eclipse.birt.chart.model.component.impl);importPackage(Packages.org.eclipse.birt.chart.model.data.impl);importPackage(Packages.org.eclipse.birt.chart.model.attribute);importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);var chart = icsc.getChartInstance();var yAxis = chart.getAxes().get(0).getAssociatedAxes().get(0);var topValue = icsc.getExternalContext().getScriptable().getParameterValue("Ave");top_ml = MarkerLineImpl.create(yAxis, NumberDataElementImpl.create(topValue));top_ml.getLabel().getCaption().setValue("Åšrednia " + topValue);top_ml.getLabel().getCaption().getFont().setName("Arial");top_ml.getLabel().getCaption().getFont().setSize(8);top_ml.getLineAttributes().getColor().set(200,0,0);top_ml.getLineAttributes().setStyle(LineStyle.DASHED_LITERAL);top_ml.getLineAttributes().setThickness(1);}</pre><p>if generation raport in enclipse then work good,</p><p>but if generation in web birt then server die.... </p><p> </p><p>why? </p><p>how i can create dynamic marker line ? </p>
Find more posts tagged with
Comments
There are no comments yet