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     Showing Data Values with % symbol

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Showing Data Values with % symbol
 Login/Join
 
<Shyam L>
posted
Hi All,
Is there a way to put % symbol along with Data Value, shown above the bar of a Graph.

Thanks,
Shyam L
 
Report This Post
Platinum Member
posted Hide Post
Shyam,

try with the following command,

setDataTextFormat(value);

setDataTextFormat(value);
value = getDataTextFormat();
where:
value
Is an integer value between -1 and 21. 0 is the default value.
-1 to use the pattern defined by DataTextFormatPattern.
0/1 for # (for example, 123 = 123)
2 for #% (for example, 123 = 12,300%)
3 for #.#% (for example, 123 = 12,300.0%)
4 for #.##% (for example, 123 = 12,300.00%)
5 for $#.## (for example, 123 = $123.00)
6 for $# (for example, 123 = $123)
7 for #K (show K for values over 999) (for example, 1,234 = 1K)
8 for $#K (show K for values over 999) (for example, 1,234 = $1K)
9 for #M (show M for millions) (for example, 1,234,567 = 1M)
10 for $#M (show M for millions) (for example, 1,234,567 = $1M)
11 for #B (show B for billions) (for example, 1,234,567,891 = 1B)

still u have any doubts just post your code i will give the solution.

Thanks,


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
Guru
posted Hide Post
While we're on the subject of API coding - how can you indicate a specific number of decimal places with the setDataTextFormat?

Confused


Sandy Kadish
Dev: 8.2.04- PostgreSQL
Test: 8.2.04 - PostgreSQL
Prod: 8.2.04 - PostgreSQL
 
Posts: 238 | Location: Atlanta, GA/Rehovot, Israel | Registered: May 06, 2003Report This Post
Expert
posted Hide Post
Sandy,

try -
setDataTextDisplay(true);
setTextFormatPattern(getDataText(0),"##.############");

but use the "get" API relevant to the graph item that you wish to hit - getO1LABEL, getO1TITLE etc.

One hash "#" symbol for each decimal place.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<Shyam L>
posted
Kalyan,
Thanks for the code. We found out the same thing over here.

Thanks for the effort.

Shyam
 
Report 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     Showing Data Values with % symbol

Copyright © 1996-2020 Information Builders