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)
find Total markers on line
mh10
Hi,
i am looking to find total number of markers on particular line
i tried 2 ways.....but no luck
1)
function afterDataSetFilled( series, dataSet, icsc )
{
if( series.getSeriesIdentifier() == "Series 1" ){
var list = dataSet.getValues();
totalMarkers = list.length;
}
}
2)
function beforeDrawMarker( marker, dph, icsc )
{
if( dph.getSeriesDisplayValue()=="Series 1"){
var list = dph.getSeriesValue();
totalMarkers = list.length;
}
both seems returning totalMarkers as NULL.
how to get total markers of thisp articular series?
Also how can i print any variable values in BIRT script like 'print out' in C ?
Thanks
Find more posts tagged with
Comments
mwilliams
Hi mh10,
What is the purpose for figuring the number of markers on a series line?
mh10
i am looking to highlight start & end marker <br />
like below script<br />
<br />
var markeridx=0;<br />
var totalMarkers=0;<br />
<br />
<br />
function beforeDrawMarker( marker, dph, icsc )<br />
{<br />
if( dph.getSeriesDisplayValue()=="Series 1"){<br />
marker.setVisible(false);<br />
<br />
if( markeridx == 1 ){<br />
marker.setFill( ColorDefinitionImpl.RED( ) );<br />
marker.setVisible(true);<br />
}<br />
<br />
if( markeridx == (totalMarkers-1)){<br />
{<br />
marker.setVisible(true); <br />
marker.setFill( ColorDefinitionImpl.BLUE( ) );<br />
}<br />
<br />
markeridx++;<br />
<br />
}<br />
<br />
<br />
<br />
Any suggestions?<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>Hi mh10,<br />
<br />
What is the purpose for figuring the number of markers on a series line?</p></blockquote>
mwilliams
mh10,
I'll have to look into the issue of obtaining this information in the chart. One way that would definitely work would be to figure how many are in each series before going into the chart and just passing in the variable for your check.