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     Gauge Graph - Between 80 and 100

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Gauge Graph - Between 80 and 100
 Login/Join
 
Gold member
posted
can anyone please help me with this?

SET HAXIS=270, VAXIS=270
GRAPH FILE DSHDATA
SUM COMPUTE UTIL_VAL/D6=96.7; AS ''
ACROSS WEEK_OUT_TXT
WHERE WEEK_OUT_NUMBER EQ 3
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 PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setDisplay(getGaugeTitle(),false);
setGaugeBandMin(getGaugeBand1(), 69.5 );
setGaugeBandMax(getGaugeBand1(), 82.5 );
setGaugeBandMin(getGaugeBand2(), 82.5 );
setGaugeBandMax(getGaugeBand2(), 95.0 );
setGaugeBandMin(getGaugeBand3(), 95 );
setGaugeBandMax(getGaugeBand3(), 107.5 );
setGaugeBandMin(getGaugeBand4(), 92 );
setGaugeBandMax(getGaugeBand4(), 93 );
setY1ScaleMin(65);
setY1ScaleMax(110);
setFillColor(getGaugeBand1(), new Color(255,0,0));
setFillColor(getGaugeBand2(), new Color(250,200,0));
setFillColor(getGaugeBand3(), new Color(0,255,0));
setFillColor(getGaugeBand4(), new Color(255,255,255));
setFillColor(getGaugeNeedle(), new Color(120,120,120));
setDisplay(getGaugeTitle(),false);
setSeriesLabel(0," ");
setPlace(false);
setGaugeNeedleStyle(5);
setScaleMaxAuto(false);
setY1LabelDisplay(true);
setGaugeBackgroundStyle(5);
setGaugeRelativeThickness(0.20);

ENDSTYLE


Even though I have tried to assign amber color between values 82.5 and 95, yet in the final graph, somehow the entire strip from 80 till 100 is coming up in RED color.

I am not sure what is hapenningm because when I multiply everything by 10, so that the scale gets expanded to 650 - 1100, I am getting the bands as expected. From 825 to 950, I am getting amber.

Please help me with this.


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 2007Report This Post
Gold member
posted Hide Post
Just in case anyone of you is unable to perceive what I have tried to explain, please find below the code snippet that you can just copy paste in your server and generate the fex. You would then understand what the problem is:

SET HAXIS=270, VAXIS=270
GRAPH FILE CAR
SUM COMPUTE ANY_VALUE/D6=97; AS ''
ACROSS COUNTRY
WHERE COUNTRY EQ 'ENGLAND'
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 PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setDisplay(getGaugeTitle(),false);
setGaugeBandMin(getGaugeBand1(), 69.5 );
setGaugeBandMax(getGaugeBand1(), 82.5 );
setGaugeBandMin(getGaugeBand2(), 82.5 );
setGaugeBandMax(getGaugeBand2(), 95.0 );
setGaugeBandMin(getGaugeBand3(), 95 );
setGaugeBandMax(getGaugeBand3(), 107.5 );
setGaugeBandMin(getGaugeBand4(), 92 );
setGaugeBandMax(getGaugeBand4(), 93 );
setY1ScaleMin(65);
setY1ScaleMax(110);
setFillColor(getGaugeBand1(), new Color(255,0,0));
setFillColor(getGaugeBand2(), new Color(250,200,0));
setFillColor(getGaugeBand3(), new Color(0,255,0));
setFillColor(getGaugeBand4(), new Color(255,255,255));
setFillColor(getGaugeNeedle(), new Color(120,120,120));
setDisplay(getGaugeTitle(),false);
setSeriesLabel(0," ");
setPlace(false);
setGaugeNeedleStyle(5);
setScaleMaxAuto(false);
setY1LabelDisplay(true);
setGaugeBackgroundStyle(5);
setGaugeRelativeThickness(0.20);
ENDSTYLE
END

-EXIT


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 2007Report This Post
Guru
posted Hide Post
I think it is sometimes interferance from bands 4 & 5.

If you add these to the code, it seems to work.
setDisplay(getGaugeBand4(),false);
setDisplay(getGaugeBand5(),false);


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Gold member
posted Hide Post
Thanks!!!
I just found another way as well, pretty much similar to what you have suggested. I just put two dummy bands in, with start and end positions as same. And that did the trick.

Looks like in Gauge Graph we need to declare all the five bands, else the results can be unpredictable.

Thanks once again!!!


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 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     Gauge Graph - Between 80 and 100

Copyright © 1996-2020 Information Builders