[CLOSED] Value of a Single Slice in the Center of a Donut Chart
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);
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
September 11, 2015, 01:20 PM
bkoehn
Already found the solution, but thanks for the reply!
Webfocus 8104 and 7703, Windows 8, Output formats: HTML, Excel, PDF, Active Report
December 02, 2015, 11:54 AM
Jay Potter
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