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.
I am trying to have the total of the stack bar displayed on top. It works when I have a value for all of the elements. When a field is either missing or has an 0 (zero) the total is displayed on the bottom of the bar like it is a negative. I am setting the datastaacktotalontop to true.This message has been edited. Last edited by: <Emily McAllister>,
dksib DC Tech Services Inc WF 8.2.1M
Posts: 117 | Location: US | Registered: February 09, 2004
I'm seeing this behavior in 8105 as well. I think in the case of Stacked bars, putting the label above the bar might get confusing for the bottom segments. So, the code for Above and and Below Top Edge generates the same label inside the segment.
The good news is I tested the same thing in 8.2 and it suppresses the label when the value is missing or 0.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
I don't think I am seeing the 'zero stack total label' looking like it is negative.
-* File stackedbarwithtotals.fex
TABLE FILE GGSALES
SUM
COMPUTE NEWDOLLARS/D12.2 = IF ST EQ 'IL' OR 'MA' THEN 0 ELSE DOLLARS;
COMPUTE NEWBUDGET/D12.2 = IF ST EQ 'IL' THEN 0 ELSE BUDDOLLARS;
BY ST
ON TABLE HOLD
END
-*
GRAPH FILE HOLD
SUM NEWDOLLARS
NEWBUDGET
BY ST
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET AUTOFIT ON
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_JS
blaProperties: {
seriesLayout: 'stacked',
stackTotalLabel:
{visible: true,
font: 'bold 10pt Sans-Serif, bold',
color: 'red'}
},
series: [{series: 'all', showDataValues: true} ],
dataLabels: {visible: true, useNegativeColor: true,
font: 'bold 10pt Sans-Serif', color: 'black'}
*END
ENDSTYLE
END
Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster