Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] more guage graph issues

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] more guage graph issues
 Login/Join
 
Platinum Member
posted
I am using this example that I found on focal point,because it helps with a issue I am having.Can someone tell me why I am not getting three bands of red,yellow and green? The third band for some reason is going back to red.

 SET HOLDLIST=PRINTONLY
DEFINE FILE GGSALES
YEAR/I4=EDIT(EDIT(EDIT(DATE),'9999'));
DOLLARSLY/I8=IF YEAR EQ 1996 THEN DOLLARS ELSE 0;
BUDDOLLARSLY/I8=IF YEAR EQ 1996 THEN BUDDOLLARS ELSE 0;
BUDDOLLARSTY/I8=IF YEAR EQ 1997 THEN BUDDOLLARS ELSE 0;
END
TABLE FILE GGSALES
SUM DOLLARSLY BUDDOLLARSLY BUDDOLLARSTY
BY REGION
WHERE YEAR EQ 1996 OR 1997
ON TABLE HOLD AS H1
END
-RUN

TABLE FILE H1
SUM AVE.DOLLARSLY NOPRINT
COMPUTE YELLOWMIN/I9= C1 * .8;
COMPUTE YELLOWMAX/I9= C1;
COMPUTE GREENMIN/I9=C1 * 1.1;
COMPUTE FULLD/D12.6=((AVE.BUDDOLLARSTY * 1.2)/1000000)+.5; NOPRINT
COMPUTE FULL/I9=INT(FULLD)*1000000;
ON TABLE HOLD AS VALUES FORMAT ALPHA
END
-RUN
-READ VALUES &YELLOWMIN.A9. &YELLOWMAX.A9. &GREENMIN.A9. &FULL.A9.
GRAPH FILE GGSALES
HEADING CENTER
"Regional Sales performance 1997 vs 1996"
SUM COMPUTE DOLLAR = 100;
ACROSS REGION
WHERE YEAR EQ 1997
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHSTYLE *

setScaleMaxAuto(false);
setScaleMax(getY1Axis(),&FULL.EVAL);

setGaugeBandMin(getGaugeBand1(), 0);
setGaugeBandMax(getGaugeBand1(), 50);
setGaugeBandMin(getGaugeBand2(), 51);
setGaugeBandMax(getGaugeBand2(), 80);
setGaugeBandMin(getGaugeBand3(), 81);
setGaugeBandMax(getGaugeBand3(), 100);
setGaugeBandMin(getGaugeBand4(), 100);
setGaugeBandMax(getGaugeBand4(), 100);

setBorderColor(getGaugeBand1(),new Color(255,0,0));
setBorderColor(getGaugeBand2(),new Color(255,255,0));
setBorderColor(getGaugeBand3(),new Color(0,255,0));
setBorderColor(getGaugeBand4(),new Color(0,255,0));

setFillColor(getGaugeBand1(),new Color(255,0,0));
setFillColor(getGaugeBand2(),new Color(255,255,0));
setFillColor(getGaugeBand3(),new Color(0,255,0));
setFillColor(getGaugeBand4(),new Color(0,255,0));

setFontSizeAbsolute( getGaugeLabel(), true );
setFontSize( getGaugeLabel(), 9 );
setGaugeTitlePosition(3);
setSeriesLabel(0," ");
setPlace(false);
ENDSTYLE

END 

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
Because, it's really not the THIRD "BAND"? Consider the following...
setGaugeBandMin(getGaugeBand1(), 0);
setGaugeBandMax(getGaugeBand1(), 50);
setGaugeBandMin(getGaugeBand2(), 51);
setGaugeBandMax(getGaugeBand2(), 80);
setGaugeBandMin(getGaugeBand3(), 81);
setGaugeBandMax(getGaugeBand3(), 100);
setGaugeBandMin(getGaugeBand4(), 100);
setGaugeBandMax(getGaugeBand4(), 100);
Then change the last three 100's to, something like 90, 91, 100... Then see if you can take it from there... HINT: Is the "X" in "GaugeBandX" referring to the Gauge?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
If you are saying that the getgaugebandX does not refer to the beginning and ending of that section of the graph, then I am really in trouble. The users have requested a guage graph that show3 three colors in percentages, 0-50% is red,51-80% is yellow, and 81 - 100% is green. How can I display this on the gauge?


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
Even though the PFJ manual lists "setGaugeBandMax" and the min equivalent, the 7.6 graphing manual does not. This leads me to believe that perhaps IB have disabled this setting as not amount of tweaking has produced consistant results.

If I were you, I would raise a case and get the determination on whether this is supported or not.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<JG>
posted
Tony's quite correct GaugeBandMin/Max are not documented in the WF manual.

However there is a bug/feature or is it feaure/bug

set the Min/Max values for band 4 & 5 to a value way off scale and it works.

setGaugeBandMin(getGaugeBand1(), 0);
setGaugeBandMax(getGaugeBand1(), 50);
setGaugeBandMin(getGaugeBand2(), 51);
setGaugeBandMax(getGaugeBand2(), 80);
setGaugeBandMin(getGaugeBand3(), 81);
setGaugeBandMax(getGaugeBand3(), 100);
setGaugeBandMin (getGaugeBand4(),999 );
setGaugeBandMax (getGaugeBand4(), 999 );
setGaugeBandMin (getGaugeBand5(), 999 );
setGaugeBandMax (getGaugeBand5(), 999 );
 
Report This Post
Platinum Member
posted Hide Post
This example works for us:

setY1ScaleMaxAuto(false);
setY1ScaleMax(100.0);
setY1ScaleMinAuto(false);
setY1ScaleMin(0.0);
setY1MajorGridStepAuto(false);
setY1MinorGridStepAuto(false);

setGaugeBandMin(getGaugeBand1(),0);
setGaugeBandMax(getGaugeBand1(),50.0);
setFillColor (getGaugeBand1(),new Color(255,128,128));
setBorderColor (getGaugeBand1(),new Color(255,128,128));

setGaugeBandMin(getGaugeBand2(),50.0);
setGaugeBandMax(getGaugeBand2(),80.0);
setFillColor (getGaugeBand2(),new Color(255,255,128));
setBorderColor (getGaugeBand2(),new Color(255,255,128));

setGaugeBandMin(getGaugeBand3(),80.0);
setGaugeBandMax(getGaugeBand3(),100.0);
setFillColor (getGaugeBand3(),new Color(128,255,128));
setBorderColor (getGaugeBand3(),new Color(128,255,128));

setGaugeBandMin(getGaugeBand4(),100.0);
setGaugeBandMax(getGaugeBand4(),110.0);
setFillColor (getGaugeBand4(),new Color(128,255,128));
setBorderColor (getGaugeBand4(),new Color(128,255,128));

setGaugeBandMin(getGaugeBand5(),110.0);
setGaugeBandMax(getGaugeBand5(),120.0);
setFillColor (getGaugeBand5(),new Color(128,255,128));
setBorderColor (getGaugeBand5(),new Color(128,255,128));


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Platinum Member
posted Hide Post
OK, either way works great!!! The 999 as well as the 110 - 120, but lets say I change the compute statement to 59.

SUM COMPUTE DOLLAR = 59;

Then the max band becomes 60 instead of 100. Why is that?


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
Donald,

See my previous post regarding getting the official support line from iB Smiler

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Ok, Tony, I will create a case with IBI.


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] more guage graph issues

Copyright © 1996-2020 Information Builders