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
kalyanswarnaShyam,
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,
November 30, 2006, 09:38 AM
S.J. KadishWhile we're on the subject of API coding - how can you indicate a specific number of decimal places with the setDataTextFormat?
November 30, 2006, 09:58 AM
Tony ASandy,
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
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