COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Prakash Bhai on 22 Sep 2010 05:27:29 AM

Title: Bubble Chart
Post by: Prakash Bhai on 22 Sep 2010 05:27:29 AM
Hi All

I am working on, Customizing a mouse over tool tip in cognos bubble chart. where I need the values to be get displayed on the chart through script. I have written a piece of code, where the else part is getting executed fine. But the main If part is not working. Is there any way to pull the data from the Query.


The java script code is like this,

"<script>

areas = document.getElementsByTagName('area');

for(i in areas)
{
if(areas.className='chart_area')
{
if(areas.alt != undefined && areas.alt.match(new RegExp('^Sales Stage = " +[Main Query].[xx] +" ')))
areas.alt = '" + [Main Query].[xx] + " - Customer- " + [Main Query].[xx] + " ';
else
areas.alt ='Hello';
}
}
</script>"


Regards

Prakash.