November 21, 2006, 01:50 PM
Robert B Clark$ sign on Data Text of Graph
I need to get the "$" (dollar sign) on the
Data Text of the Y2 axis on my graph. NOT the Y2 Label, I have that already. It's the text floating above the Bars that I'm having problems with. The caveat: I'm running 5.3.3 Can it be done???
Any help would be greatly appreciated.
November 21, 2006, 01:53 PM
KameshHope this is what you are looking for,
setDataTextFormat(16);
setDataTextPosition(0);
Hope this helps,
November 21, 2006, 02:03 PM
Robert B ClarkClose. Still no "$". I do like the "K" for the 1000s place, but it's applying it to both Y1 and Y2 axis. I need Y2 only. Any other suggestions?
November 21, 2006, 03:10 PM
Kameshtry this
setDataTextFormatPattern("$#.##");
setDataTextFormat(-1);
November 21, 2006, 03:44 PM
Robert B ClarkMUCH CLOSER! I have the $ sign now. Thank you. Unfortunately it's on the Y1 axis also, which is my quantity.
Any way to make it selective??? Y1 or Y2 only?
November 21, 2006, 04:29 PM
KameshHope it will work this time,
setY2LabelFormatPattern("$#.##");
setY2LabelFormat(-1);
November 22, 2006, 06:54 PM
Robert B ClarkI was able to use this:
setDataTextDisplay(true);
setDataTextPosition(4);
setCustomDataText(getSeries(0), true);
setCustomDataText(getSeries(1), true);
setDisplay(getDataText(0), true);
setDataTextPosition(4);
setTextFormatPreset(getDataText(0), 1);
setFontSizeAbsolute(getDataText(0), true);
setFontSizeInPoints(getDataText(0), 12);
setDisplay(getDataText(1), true);
setDataTextPosition(1);
setTextFormatPreset(getDataText(1), 8);
setFontSizeAbsolute(getDataText(1), true);
setFontSizeInPoints(getDataText(1), 12);
It worked. Now I just have to work on the positioning. Even though I tell it position 4 it's shifted up and to the right. I'll tackle that later I guess