Focal Point
Showing Data Values with % symbol

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3531019891

November 30, 2006, 02:24 AM
<Shyam L>
Showing Data Values with % symbol
Hi All,
Is there a way to put % symbol along with Data Value, shown above the bar of a Graph.

Thanks,
Shyam L
November 30, 2006, 03:23 AM
kalyanswarna
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.
------------------------------------
November 30, 2006, 09:38 AM
S.J. Kadish
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
November 30, 2006, 09:58 AM
Tony A
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 
December 01, 2006, 01:12 AM
<Shyam L>
Kalyan,
Thanks for the code. We found out the same thing over here.

Thanks for the effort.

Shyam