Hi,
I'm trying to build a graph (Vertical Bar) against percentage, somewhat I'm not able to show the % sign with data.
This is the sample code,
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS TEST
END
SET LOOKGRAPH=VBAR
-*SET BARNUM = ON
SET GRID=OFF
SET 3D=OFF
SET VZERO=OFF
SET HAXIS=888
SET VAXIS=440
SET GRAPHEDIT = SERVER
GRAPH FILE TEST
SUM
COMPUTE TT/I3%=((RETAIL_COST / TOT.RETAIL_COST) * 100);
ACROSS COUNTRY
ON GRAPH SET GRAPHSTYLE *
setO1TitleString("This is Ordinal(O1) axis title");
setO1TitleDisplay(true);
setO1TitleAutofit(false);
setTitleDisplay(true);
setTitleString("test graph");
setTitleAutofit(true);
setFontSizeAbsolute(true);
setFontName(getSubtitle(),"Courier");
setFontName(getTitle(),"TimesRoman");
setFontSizeInPoints(getY1Label(),50);
setFontSizeVC(getO1Label(),2000);
setTextRotation(getDataText(),1);
setTextJustHoriz(getDataText(),0);
setDataTextDisplay(true);
-*setDataTextFormat(2);
-*setDataTextFormatPattern("#.##");
ENDSTYLE
END
-EXIT
I want the column TT should show as 100% but when I set the DataTextFormat property to 2, it shows as 10,000%. Please let me know if we have any other property to show the percentage.
Thanks in advance,
WFConsultant
WF 8105M on Win7/Tomcat