Focal Point
[CLOSED] Conditional Graph Hover text

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

March 25, 2010, 07:03 AM
It's Alive!
[CLOSED] Conditional Graph Hover text
I have checked many threads and the closest i could only see one which was anything similar to my problem which was posted by fernando in 2007...

It's not a problem as such just a new requirement... i have a v-bar graph showing two columns each for 12 months... for the first size months i need a particular hover text and for the second six months i need a different hover text... problem is that i am getting all the values from the same two columns and sorting across the month column..

GRAPH FILE FIN_DATA
SUM
ACTUALS AS 'ACTUALS'
FORECASTS AS 'FORECASTS'
BY MONTH COLUMNS 'JAN' AND 'FEB' .....
.
.
.

the hover text for the actuals is ACTUALS JAN+VALUE etc and similar for forecast... but from jun onwards i need the hover text to change from "Actuals ... " to "60 day ...." based on a condition?

Is this possible?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.1.4
UNIX
HTML,PDF,EXL2K
March 25, 2010, 09:32 AM
Ram Prasad E
Search for these two methods in this forum, it will help you
"setDeveloperToolTip" and "setUserToolTip"


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
March 25, 2010, 10:04 AM
Tony A
I don't think that you can have differing texts in the tooltips, just "one rule for all" using standard WF.

However, you might be able to programatically change the tooltips using the Java Perspective (which is the graphing engine used in 7.1.4). Google "ThreeDGraphics" and from their main page look for the Java Perspective manual.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
March 25, 2010, 11:40 AM
Tewy
If you split your data into two fields, one for pre-Jun one for Jun onwards, can you set a different hover text for each of the fields?

You may fall into additional issues with a legend though, because although the graph can be styled so the user won't know there are now three fields not two, a legend may give you away.

Just a thought


WF 7.6.11
Output: HTML, PDF, Excel
March 25, 2010, 05:21 PM
Waz
How does the tooltip differ from the first 6 months to the next?

Here is an example that may, or may not help.

It has a User Tooltip, and something slightly different for highlighting sections of the chart.
GRAPH   FILE EMPLOYEE
 SUM    CNT.EMP_ID
 ACROSS HIRE_DATE
 ON GRAPH SET LOOKGRAPH VBAR
 ON GRAPH SET GRAPHEDIT OFF
 ON GRAPH SET GRAPHSTYLE *

-* User Tooltip
setToolTipMode(false);
setUserToolTip("Object Name:[ON][R]Object ID:[OID][R]Object Instance:[OIN][R]Object Description:[OD][R]Series Label:[SL][R]Group Label:[GL][R]X Value:[XV][R]Y Value:[YV][R]Z Value:[ZV]");

-* Alternate Frames
setDisplay(getO1AltFmtFrame(), true); 
setAltFmtFrameNumColors(getO1AltFmtFrame(), 2); 
setAltFmtFrameSeparator(getO1AltFmtFrame(0), 5.0); 
setDisplay(getO1AltFmtFrame(0), true); 
setDisplay(getO1AltFmtFrame(1), true); 
setFillColor(getO1AltFmtFrame(0), new Color(255,221,221)); 
setFillColor(getO1AltFmtFrame(1), new Color(221,255,221));

-* Annotation 1
setDisplay(getAnnotation(0), true);
setTextString(getAnnotation(0), "Jan-Jun");
setFillColor(getAnnotation(0), new Color(128,0,0));
setRect(getAnnotation(0),new Rectangle(-14000,11000,9000,1800));
setFontSizeAbsolute(getAnnotation(0),true);
setFontSizeInPoints(getAnnotation(0),15.0);

-* Annotation 2
setDisplay(getAnnotation(1), true);
setTextString(getAnnotation(1), "Jul-Dec");
setFillColor(getAnnotation(1), new Color(0,128,0));
setRect(getAnnotation(1),new Rectangle(0,11000,15000,1800));
setFontSizeAbsolute(getAnnotation(1),true);
setFontSizeInPoints(getAnnotation(1),15.0);
 ENDSTYLE
END


If you want the User Tooltips, GRAPHEDIT needs to be set to OFF


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 25, 2010, 10:17 PM
Ram Prasad E
Tony, this page ThreeDGraphics you are mentioning really useful. Thanks.


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
March 26, 2010, 02:59 AM
Kofi
Waz,

Excellent suggestion, I am thinking that this should put to tip & technique, yes?

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012