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] Stacked Area Chart - Target and % of the total.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Stacked Area Chart - Target and % of the total.
 Login/Join
 
Master
posted
I have a stacked area chart that has 2 measure and line with the month as the X Axis. The line is a the target for each month which is .9 * the total so it is always below the total of the 2 stacked items. Here is ny issue the users want to have a data label that displays the percentage of measure 1 against the total, not the target #.

So, say measure 1 for Jan is 500 and measure 2 is 250 then ney want the datalabel for that month to be that show as '66%'. anyone have any idea of how this could be done.

Thanks
Scott
WF8x

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




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
<nick z>
posted
You can COMPUTE the 2 percent fields and then set the color of both of them to be transparent. You will then simply show the data labels for those 2 new COMPUTED fields. Here is an example using CAR file:

GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.BODY.RETAIL_COST
COMPUTE rc_total/D12.2=CAR.BODY.RETAIL_COST/( CAR.BODY.RETAIL_COST + CAR.BODY.SALES ) ; AS ' '
CAR.BODY.SALES
COMPUTE sl_total/D12.2=CAR.BODY.SALES /( CAR.BODY.RETAIL_COST + CAR.BODY.SALES ) ; AS ' '
COMPUTE target/D12.2=( CAR.BODY.RETAIL_COST + CAR.BODY.SALES ) * .9;
BY CAR.ORIGIN.COUNTRY
WHERE CAR.ORIGIN.COUNTRY NE 'FRANCE';
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VAREASTK
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,$
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);
setStackedDataValueSum(false);
setFillColor(getSeries(1),new Color(255,255,255,0));
setFillColor(getSeries(3),new Color(255,255,255,0));
setDataTextDisplay(false);
setDisplay(getDataText(1), true);
setDisplay(getDataText(3), true);
setTextFormatPreset(getDataText(),2);
setDataTextPosition(2);
setSeriesType(0,0);
setSeriesType(1,0);
setSeriesType(2,0);
setSeriesType(3,0);
setSeriesType(4,2);
*END
ENDSTYLE
END

-RUN
 
Report This Post
Expert
posted Hide Post
You may wish to edit the post subject
quote:
Stacket Area Shart
Smiler


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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] Stacked Area Chart - Target and % of the total.

Copyright © 1996-2020 Information Builders