COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Kriahna on 17 Dec 2010 03:24:25 AM

Title: Show tool tip for Combination chart series
Post by: Kriahna on 17 Dec 2010 03:24:25 AM
Hi,

I am working on cognos 8.4 Report studio.I am creating one combination chart with one bar and two lines as series.
The  data items used for lines are [LCL] and [UCL] respectively.I want to show the text LCL and UCL when I am moving the mouse over the respective lines in chart.

I have enabled Tool tip property as'show' for the chart.

Please tell me how can I achieve it.

Regards,
Kriahna
Title: Re: Show tool tip for Combination chart series
Post by: Sreeni P on 17 Dec 2010 04:09:07 AM
Quote from: Kriahna on 17 Dec 2010 03:24:25 AM
Hi,

I am working on cognos 8.4 Report studio.I am creating one combination chart with one bar and two lines as series.
The  data items used for lines are [LCL] and [UCL] respectively.I want to show the text LCL and UCL when I am moving the mouse over the respective lines in chart.

I have enabled Tool tip property as'show' for the chart.

Please tell me how can I achieve it.

Regards,
Kriahna


Hi Krishna,

you can achieve this using JavaScript in your report

drag two HTML items in to the report, and place this simple java script in to that elements

be sure that your query item should be placed between these two HTML items.

HTML Item 1:Define the first HTML item source type as a Report Expression from properties and define it as:
'<span title="' + [Drag tool tip description item which corresponds to report element] + '">'

HTML Item 2:define the second HTML item source type as a Text from properties:
</span>

Hope it will fixes your problem................

Regards,
Sreenivas
Title: Re: Show tool tip for Combination chart series
Post by: Kriahna on 17 Dec 2010 04:47:28 AM
Hi Srinivas,

It is working. one change I made is instead of giving the property of first HTML as Report Expression I have given it as text.

Thanks for your assistance.