Focal Point
ToolTip Display in a Bubble Graph

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9211048642

September 14, 2007, 12:46 PM
Michele
ToolTip Display in a Bubble Graph
Is there a way to loop through a ToolTipDisplay? I have a -READ statement in my program that reads a hold file that holds just the percentages for each individual health service group that need to be displayed in the tool tip display. I have the following code in my graph program. The amper variables represent the values that are in the hold file that I am reading. What I'm trying to do is display the percentages that are in the hold file in the tool tip display based on the health service group. This works if I put just the first set command in my program, but I get the same percentage value for each bubble's tool tip display. Thanks.



-IF KEY EQ 'Keystone Commercial Medical' THEN GOTO UTT1 ELSE GOTO UTT1L;
-UTT1
setUserToolTip("[SL] [R] Admits per 1000: &MED% [R] Cost Per Admit: &MED2% [R] PMPM: $[ZV] ");
-UTT1L
-IF KEY EQ 'Keystone Commercial Surgical' THEN GOTO UTT2 ELSE GOTO UTT2L;
-UTT2
setUserToolTip("[SL] [R] Admits per 1000: &SUR% [R] Cost Per Admit: &SUR2% [R] PMPM: $[ZV] ");
-UTT2L
setUserToolTip("[SL] [R] Admits per 1000: [XV] [R] Cost Per Admit: [YV] [R] PMPM: $[ZV] ");

Webfocus 7.1.7 Windows XP 5.1
September 17, 2007, 01:12 PM
Kerry
Hi Michele,

As usual, if this is a graph issue, please upload an image to show the problem. If you have current code to share with us, please kindly post it here as well. Both will help us have a better understanding of the issue.

Thank you in advance for sharing. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
September 17, 2007, 09:08 PM
dhagen
Michele,

You might have better luck using JavaScript to do this. Maybe bang the messages into a JS array, then use an onload function to then change the value of the tool tip to what you want.

The following link shows you how to modify a tool tip with JS. Change it to meet your requirements:

Example of modifying a tool tip


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
September 19, 2007, 04:40 PM
Michele
Don't really know anything about Java Script, but I will see if I can get someone who does to help me. Will let you know how I make out. Thanks.