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     [CLOSED] Value of a Single Slice in the Center of a Donut Chart

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Value of a Single Slice in the Center of a Donut Chart
 Login/Join
 
Member
posted
I have a graph file of type PIERING. So far I've only been able to find a way to display the total of all values in the center of the chart, but I want to display only the value of one individual slice of the donut chart in the hole. In the code below, that would be the value of PURPCT. I couldn't find anything in the documentation. Any suggestions?


GRAPH FILE GRAPHDAT
HEADING
"Target"
SUM
-*PURCHASE AS ''
TRPCT1 AS 'Achieved'
PURPCT AS 'Remaining'

ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET EMBEDHEADING 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 ON
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH PIERING
ON GRAPH HOLD AS GRPDAT FORMAT JSCHART
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
-*INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
-*TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='TAHOMA', SIZE=12, COLOR=RGB(66 70 73), STYLE=NORMAL, $
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, LEFTMARGIN=1.4, TOPMARGIN=1.0, RIGHTMARGIN=0.2, BOTTOMMARGIN=1.27, $
*GRAPH_SCRIPT
setDisplay(getPieRingLabel(),false);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setLegendDisplay(false);
setPieFeelerTextDisplay(0);
setDisplay(getLegendArea(),false);

setFontSizeAbsolute(getPieRingLabel(),true);


setFontSizeInPoints(getPieRingLabel(),18);
setPlaceResize(getPieRingLabel(),0);
setFillColor(getSeries(0),new Color(0,101,164));
setFillColor(getSeries(1),new Color(255,192,0));

*GRAPH_JS
riserBevel: ' ',
riserShadow:{angle: 180, distance: 8, blur: .2},
pieProperties:{
holeSize: '50%',
label: {visible: false, font: '10pt Arial', color: '#666666'},
multiRing:false,
skew: 25
}
*END
TYPE=HEADING, JUSTIFY=CENTER, FONT='TAHOMA', SIZE=12, COLOR=RGB(66 70 73), STYLE=BOLD, $
ENDSTYLE
END

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


Webfocus 8104 and 7703, Windows 8, Output formats: HTML, Excel, PDF, Active Report
 
Posts: 15 | Registered: August 31, 2015Report This Post
Guru
posted Hide Post
Hi bkoehn,

If you have not already reviewed the WebFOCUS 81.04 charting documentation here it is:

Creating HTML 5 Charts with WebFOCUS DN4501485.0315


Page - 402 - Properties that affect pie charts
Page - 140 - Showing and Formatting Data Text Labels for All Series
dataLabels: position is set to 'outside' or CENTER ( see page 142 )


Search within the PDF for PIE and there are several references that my of assistance.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Member
posted Hide Post
Already found the solution, but thanks for the reply!


Webfocus 8104 and 7703, Windows 8, Output formats: HTML, Excel, PDF, Active Report
 
Posts: 15 | Registered: August 31, 2015Report This Post
Guru
posted Hide Post
What was your solution? I am trying to do the same thing.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report 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     [CLOSED] Value of a Single Slice in the Center of a Donut Chart

Copyright © 1996-2020 Information Builders