Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
About Meter Charts
egau
Hello,
I want to set the value of regions of a chart meter at the runtime ( like the color of series of a normal chart etc. . ) but I don't succeed and don't really know how to do, I tried things like that :
function beforeDrawSeries( series, isr, icsc )
{
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl);
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.impl);
importPackage( Packages.org.eclipse.birt.chart.model.type.impl);
dregion1 = DialRegionImpl.create();
dregion1.setFill(ColorDefinitionImpl.GREEN());
dregion1.setStartValue(NumberDataElementImpl.create(70));
dregion1.setEndValue(NumberDataElementImpl.create(90));
dregion1.setInnerRadius(40);
dregion1.setOuterRadius(-1);
//isr.getDial().getDialRegions().add(dregion1);
}
Error : TypeError: Cannot find function getDial in object org.eclipse.birt.chart.render.EmptyWithoutAxes@9ae087. at line 26 of chart script:''
So if you have an idea or an example , I would appreciate.
I'm using BIRT 2.5 .
Regards,
Egau on #eclipse-birt
Find more posts tagged with
Comments
egau
SO, the question is : which object in which method in the Chart meter script part, can access to this "getDial()" method ????????
egau
Can be deleted