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     Show Percentage in Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Show Percentage in Graph
 Login/Join
 
Master
posted
Hi,
I'm trying to build a graph (Vertical Bar) against percentage, somewhat I'm not able to show the % sign with data.

This is the sample code,

TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS TEST
END

SET LOOKGRAPH=VBAR
-*SET BARNUM = ON
SET GRID=OFF
SET 3D=OFF
SET VZERO=OFF
SET HAXIS=888
SET VAXIS=440

SET GRAPHEDIT = SERVER

GRAPH FILE TEST
SUM
COMPUTE TT/I3%=((RETAIL_COST / TOT.RETAIL_COST) * 100);
ACROSS COUNTRY
ON GRAPH SET GRAPHSTYLE *
setO1TitleString("This is Ordinal(O1) axis title");
setO1TitleDisplay(true);
setO1TitleAutofit(false);

setTitleDisplay(true);
setTitleString("test graph");
setTitleAutofit(true);

setFontSizeAbsolute(true);
setFontName(getSubtitle(),"Courier");
setFontName(getTitle(),"TimesRoman");
setFontSizeInPoints(getY1Label(),50);
setFontSizeVC(getO1Label(),2000);

setTextRotation(getDataText(),1);
setTextJustHoriz(getDataText(),0);
setDataTextDisplay(true);
-*setDataTextFormat(2);
-*setDataTextFormatPattern("#.##");

ENDSTYLE
END
-EXIT

I want the column TT should show as 100% but when I set the DataTextFormat property to 2, it shows as 10,000%. Please let me know if we have any other property to show the percentage.

Thanks in advance,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
I have this (less than vague) feeling that when you use the % symbol in GRAPH, it behaves differently than if you used it in TABLE - do not multiply by 100 in GRAPH.

It doesn't make any sense, but I think I discovered this behaviour a year ago.

For a related problem, I opened case 12722036 - regarding use of % and Excel 2000 issues.

This message has been edited. Last edited by: Francis Mariani,


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
Virtuoso
posted Hide Post
You could try playing with this

setTextFormatPattern(getDataText(),"####%")


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Master
posted Hide Post
Tried that, not much luck.

I'm trying with setY1LabelFormat now.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 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     Show Percentage in Graph

Copyright © 1996-2020 Information Builders