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)
Dynamic marker in Chart
suma
HI ,
I tried changing the marker dynamically using script ,but it showing error
"+ ReferenceError: "MarkerType" is not defined. at line 6 of chart script:''
the script i used is
function beforeDrawMarker( marker ,dph, icsc)
{
ms =dph.getOrthogonalValue();
if( ms>40)
{
marker.setType(MarkerType.CROSS_LITERAL);
}else
{
marker.setType(MarkerType.STAR);
}
}
can anyone tell wat is the problem??
Find more posts tagged with
Comments
mwilliams
Hi Suma,
Can you explain more of what you're wanting to do? Thanks.
suma
HI michael,
I need to change line marker dynamically ,like if the series value is greater than threshold my marker should be "STAR" or if it is beloe threshold the marker will be CROSS Literal.
Thanks,
Suma
henry
You need to import package in the script, you should write like this:
importPackage(Packages.org.eclipse.birt.chart.model.attribute), the MarkerType is in the package.