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     [CASE-OPENED] Semi Gauge Chart using Webfocus 8.0.08

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Semi Gauge Chart using Webfocus 8.0.08
 Login/Join
 
Silver Member
posted
Hi,
I created gauge chart and works fine. Is there any possibility to create semi gauge chart(ie half moon type). Please find the code below:

*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IS0tMS4wLS0+PFJvb3QgdmVyc2lvbj0iMS4wIj4KICAgIDxPYmplY3Qgb2JqZWN0SWQ9IkNoYXJ0XzEiPgogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJMaW5rZWRTb3J0cyIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIvPgogICAgPC9PYmplY3Q+CiAgICA8T2JqZWN0IG9iamVjdElkPSJHTE9CQUwiPgogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJTYW1wbGVEYXRhIiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+ZmFsc2U8L1Byb3BlcnR5PgogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJHbG9iYWxSZWNvcmRMaW1pdCIgdH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ydHk+CiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImVuYWJsZVByZXZpZXciIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIj50cnVlPC9Qcm9wZXJ0eT4KICAgIDwvT2JqZWN0Pgo8L1Jvb3Q+
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON

-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM
COMPUTE CSAT/D12.1% = DEALER_COST * 100;
BY CAR NOPRINT
WHERE CAR EQ 'BMW';
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
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 1
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFontSizeInPoints(getGaugeValue(),18);
setFillColor(getGaugeValue(),new Color(255,255,255)));
setFontSizeAbsolute(getGaugeValue(),true);
setAutofit(getGaugeValue(),false);
setPlaceResize(getGaugeValue(),0);
setFillColor(getChartBackground(),'Grey'));
setFillColor(getGaugeNeedle(), new Color(0,0,0));


setFootnoteString("BMW");
setFontSizeInPoints(getFootnote(),20);
setFontName(getFootnote(),"Courier New");
setRect(getFootnote(),new Rectangle(-13278,-21700,29999,10990));
setTextWrap(getFootnote(), true);


setFillColor(getY1Label(),new Color(255,255,255));
setFontSizeAbsolute(getY1Label(),true);
setAutofit(getY1Label(),false);
setFontSizeInPoints(getY1Label(),16);
setPlaceResize(getY1Label(),0);


setDisplay(getFrame(), false); setGaugeNeedleStyle(1);


setPlace(false);
*GRAPH_JS
gaugeProperties: {
fill: {color: 'linear-gradient(0%,0%,100%,0%, 20% gray, 95% black)'},
groupLabel: {visible: false},
axisWidth: 0,
secondaryNeedlesAsMarkers: true ,
needleBase: {
size: 10,
color: 'red',
border: {
width: 3,
color: 'green',
dash: '1 1'
}
},
secondaryNeedlesAsMarkers: true,

outerBorder: {
fill: {color: 'linear-gradient(0%,0,100%, 0, 0 reddish brownish gray, 0.5 pink, 1 reddish brownish gray)'},
width: 20
}



}
*END
TYPE=DATA,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR=RED,
$

ENDSTYLE
END
-RUN
-*IA_GRAPH_FINISH

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
Windows, All Outputs
 
Posts: 40 | Registered: April 02, 2014Report This Post
Member
posted Hide Post
hello,

I looked at WebSite and just found that we can change the start position and the end position of numbers ( graduation ) but it seems not possible to display only a semi gauge.

add this line just after the gaugeProperties: {

 
 startAngle:180, endAngle:360, 
 


If someone has news about this, cool

Rgds,


8207, Windows 2016 64b, HTML, AHTML, PDF, EXL07...
 
Posts: 27 | Location: Suresnes | Registered: August 26, 2010Report This Post
Virtuoso
posted Hide Post
Not sure about having half moon type, but here is the code to reduce the gauge angle :

setGaugeStartAngle(220.0);
setGaugeStopAngle(350.0);


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Silver Member
posted Hide Post
quote:
setGaugeStartAngle(220.0);
setGaugeStopAngle(350.0);

The gauge chart should be in Semi circle not in Full Circle.


Thanks
Shakila


WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
Windows, All Outputs
 
Posts: 40 | Registered: April 02, 2014Report 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     [CASE-OPENED] Semi Gauge Chart using Webfocus 8.0.08

Copyright © 1996-2020 Information Builders