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)
setting marker runtime through script
venky
guys,
i am having issue with setting marker dynamically in script...
i know how to set in design time ..but i am looking to change the marker run time depending on the value...
here is the following code ..
function beforeGeneration( chart, icsc )
{
yAxis1 = chart.getOrthogonalAxes( xAxis, true )[0];
yAxis2 = chart.getOrthogonalAxes( xAxis, true )[1];
seriesDef1 = yAxis1.getSeriesDefinitions().get(0);
seriesDef2 = yAxis2.getSeriesDefinitions().get(0);
runSeries1 = seriesDef1.getRunTimeSeries()[0];
runSeries2 = seriesDef2.getRunTimeSeries()[0];
here i dont know how to get lineseries in order to set marker type...and making it visible...
}
i have tried other options like setting in
unction beforeDrawMarker( marker ,dph, icsc)
{
marker.setType(MarkerType.CROSS_LITERAL);
marker.setSize(4);
marker.setVisible(true);
}
but it is not working ....any ideas guys...?
Find more posts tagged with
Comments
mwilliams
Hi Venky,<br />
<br />
There's a couple devShare posts having to do with dynamic markers. They should help you out. Let me know if you have questions.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/modules/wfdownloads/devshare.php?filtercontent=dynamic+marker&contenttype=-1&date=-2year&rating=0&results=10&cid=0'>Dynamic
Markers - BIRT Exchange</a>
venky
Thanks for ur response.. i couldn't able to get the output from those examples.
here i am attaching my example...i need to draw marker with circle point when
i get only one record.. remaining times i dont need to draw the marker bcoz
the lines will show up.
only for single point the line wont show up so i need to draw ( circle or trangular) marker point for that...
please find the attachment .. i added it for design time marker and with out(looking for solution).. so i need it for run time..
mwilliams
venky,
What version of BIRT are you using?
venky
version i am using is 2.2.2
mwilliams
venky,
In 2.3.2, there is a function within the chart's onRender script called beforeDrawMarker(). This function is not there in BIRT 2.2.2. So far, I have not figured out how to access the marker in 2.2.2, but if you can upgrade, you should be able to set the visibility of the markers in 2.3.2. I'll let you know if I find how to get to the Marker visibility in 2.2.2.
venky
thanks for the update.. i would have wasted some more time figuring out how to fix it. Coming to upgrade what the latest stable version that i can upgrade from 2.2.2 with out any issues ?
mwilliams
venky,
The best way to test whether your reports will have any issues is to download the new designer or runtime and test some of them in the newer version. I have heard of some issues of people upgrading to 2.5.x from older versions, though I myself have not seen any issues. 2.3.2 could be a good place to start.