I have two similar javascripting challenges I am looking to solve in Cognos with the help of conditional formatting.
I would like to be able to show a data item, for only the item that I am comparing other items to in Cognos. For example, If my chart shows a comparison of Florida to the rest of the US States -- Florida is what I am doing am doing the comparison to within my charts.
So I would like to show the data label for Florida only. Conditional formatting in Cognos will let you either turn all item labels on, or off. I am looking to find a way to turn them all on with conditional formatting, but hide all the values, except the Florida value which is the focus of my report with javascript.
Here is an example of my chart and how it looks with all the data labels showing: http://i.imgur.com/aM4gEYu.jpg I only need to show the number for Florida. The rest of the numbers make the chart look way too cluttered.
Also - My second challenge is when my mouse hovers over the other labels - I would like to show the values for them (but only on hover). So basically the label will default to showing the Florida label only, but if the user hovers over the United States, or the World values - then the user will be able to see that item.