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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Gauge
 Login/Join
 
Virtuoso
posted
My customer wishes to get the following:


I have arrived at the following with WF:


This the code I use:
  
-SET &ECHO=ALL;
-* File gauge.fex
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';

-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
SUM COMPUTE PCT_1/D12.2=CAR.BODY.DEALER_COST/CAR.BODY.RETAIL_COST * 100 ;
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SAVE
END
-RUN
-READ SAVE,&PCT
-RUN
-TYPE &PCT

GRAPH FILE ibisamp/car
HEADING
"Target"
-* Created by Info Assist for Graph
SUM COMPUTE PCT_1/D12.2=CAR.BODY.DEALER_COST/CAR.BODY.RETAIL_COST * 100; AS ' '
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_JS
yaxis:
 {
  majorGrid:
   {
    visible: false,
    ticks:
	 {
	  length:0,
	  visible:false,
	 }
   },
  minorGrid: 
   {
    visible: false,
    ticks: 
	 {
      length: 0,
      visible: false
     }
   },
  labels:
   {
    font: 'bold 0pt Sans-Serif',
	color: 'white'
   },
  numberFormat: '${{auto}}',
  dataLabels:
   {
    font: 'bold 10pt Sans-Serif',
    color: 'teal',
    numberFormat: '~${{auto}}+'
   },
  colorBands:
   [
    {   start: 0  ,color: 'GREEN' , stop: &PCT },
    {   start: &PCT ,color: 'rgb(200,200,200)' , stop: 108 }
   ]
  ,
  ticks:
   {
    length: '0%',
    visible: false,
    lineStyle:
	 {
      width: 0
     }
   }
 }
,
series:
 [
  {
   series: 0, color: 'white'
  }
 ]
,
gaugeProperties:
 {
  axisWidth: '30%',
  startAngle: 270,
  endAngle: 270,
  axisTickLength: '0%',
  needleBase:
   {
    size: '0%',
    color: 'white',
    border:
     {
      width: 0,
      color: 'transparent',
      dash: ''
     }
   },
  outerBorder:
   {
    width: '0%',
    fill:
     {
      color: 'white'
     },
    border:
     {
      width: 0,
      color: 'transparent',
      dash: ''
     }
   },
  groupLabel:
   {
    visible:false
   },
  totalLabel:
   {
    visible: true,
    font: '72pt Courier bold italic',
    color: 'black' ,
    numberFormat: 
	 {
      mode: 'numeric',
      decimalPlaces: 0,
      prefix: ' ',
      suffix: '`%',
     }
   }
 }
*END
-#NOJS
INCLUDE=ENIADefault_combine,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
ENDSTYLE
END


Does anybody have a way to put the totalLabel in the middle of the gauge?

This message has been edited. Last edited by: <Emily McAllister>,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Hi Danny,

Did you see this post?

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
Expert
posted Hide Post
Should have mentioned graphtype=ringpie.

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
Member
posted Hide Post
Sorry heading to the airport. But try subfoot. You may need to use spot markers to position things.


8.0.1
 
Posts: 7 | Registered: August 22, 2016Report This Post
Virtuoso
posted Hide Post
Tony,
Thanks.
I'll give it a try.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders