Focal Point
$ sign on Data Text of Graph

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

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.


Robert B. Clark -- Business Systems Analyst
Daimler Trucks North America
Phone: 503.745.7057
"There's always a better way."
IBM Mainframe zOS 8.1.05, DB2 adapter
WF 8.1.05 Hub to Sub, Self-Service, SQL Server adapter
November 21, 2006, 01:53 PM
Kamesh
Hope this is what you are looking for,

setDataTextFormat(16);
setDataTextPosition(0);

Hope this helps,


WFConsultant

WF 8105M on Win7/Tomcat
November 21, 2006, 02:03 PM
Robert B Clark
Close. 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?


Robert B. Clark -- Business Systems Analyst
Daimler Trucks North America
Phone: 503.745.7057
"There's always a better way."
IBM Mainframe zOS 8.1.05, DB2 adapter
WF 8.1.05 Hub to Sub, Self-Service, SQL Server adapter
November 21, 2006, 03:10 PM
Kamesh
try this

setDataTextFormatPattern("$#.##");
setDataTextFormat(-1);


WFConsultant

WF 8105M on Win7/Tomcat
November 21, 2006, 03:44 PM
Robert B Clark
MUCH 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?


Robert B. Clark -- Business Systems Analyst
Daimler Trucks North America
Phone: 503.745.7057
"There's always a better way."
IBM Mainframe zOS 8.1.05, DB2 adapter
WF 8.1.05 Hub to Sub, Self-Service, SQL Server adapter
November 21, 2006, 04:29 PM
Kamesh
Hope it will work this time,

setY2LabelFormatPattern("$#.##");
setY2LabelFormat(-1);


WFConsultant

WF 8105M on Win7/Tomcat
November 22, 2006, 06:54 PM
Robert B Clark
I 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


Robert B. Clark -- Business Systems Analyst
Daimler Trucks North America
Phone: 503.745.7057
"There's always a better way."
IBM Mainframe zOS 8.1.05, DB2 adapter
WF 8.1.05 Hub to Sub, Self-Service, SQL Server adapter