quote:
setDisplay(getDataTextStackedTotalOnTop(), true);
setFillColor(getDataTextStackedTotalOnTop(),new Color(0,0,255));
setDataTextPosition(0);
setTextRotation(getDataTextStackedTotalOnTop(), 0);
setPlace(true);
I tried your suggestion and the data text did move, however the first data text is below the first bar. The 2nd, 3rd and 5th data text is on the bar and the 4th data text is outside the bar graph. Please run the following program against the Car file. Thanks so much.
-* File icr_c15g.fex
APP HOLD ibisamp
-*SET GRAPHENGINE = OLD
-*SET XRETRIEVAL = OFF
-SET &ECHO=ALL;
SET PANEL=346
SET WIDTH=346
-*************************************************************************************************************************
-******* CAR GRAPH IMAGE APPEARING ON THE LEFT-SIDE OF THE REPORT *******
-*************************************************************************************************************************
DEFINE FILE CAR
SORTER/I1 = DECODE CAR (
'JAGUAR' 1
'JENSEN' 2
'TRIUMPH' 3
'DATSUN' 4
'TOYOTA' 5
ELSE 0);
APCT/D8.2% = IF CAR EQ 'JAGUAR' THEN 59.00 ELSE
IF CAR EQ 'JENSEN' THEN 19.00 ELSE
IF CAR EQ 'TRIUMPH' THEN 18.00 ELSE
IF CAR EQ 'DATSUN' THEN 2.00 ELSE
IF CAR EQ 'TOYOTA' THEN 60.00 ELSE 0;
END
GRAPH FILE CAR
PRINT APCT NOPRINT COMPUTE APCTA/D8%=APCT / 100; AS ''
BY SORTER
WHERE SORTER NE 0
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH PCHOLD FORMAT PNG
-*ON GRAPH HOLD AS ICRLGRPH FORMAT SVG
-*ON GRAPH SET VAXIS 220
-*ON GRAPH SET HAXIS 260
ON GRAPH SET GRAPHSTYLE *
setTextFormatPreset(getDataText(0), 2);
setDataTextFormat(2);
setTransparentBorderColor(getFrame(), true);
setAxisAssignment(3,0);
setSeriesType(3,1);
setY1ScaleMaxAuto(true);
setY1MajorGridStepAuto(false);
setGridStep(getY1MajorGrid(),0.10);
setAxisAssignment(2,0);
setSeriesType(2,1);
setRect(getFrame(),new Rectangle(-14715,-7040,24444,17196));
setY1MinorGridStepAuto(false);
setFontSizeAbsolute(getDataText(),true);
setGridStep(getY1MinorGrid(),0.125);
setGridStepAuto(getY1MinorGrid(),true);
setAxisDescending(getY1Axis(),true);
setDataTextAngle(getSeriesGroup(0,0),22);
setGridStep(getY1MinorGrid(),0.5);
setFontStyle(getDataText(),0);
setFontSize(getDataText(),8);
setAutofit(getY1Label(),false);
setAutofit(getDataText(),false);
setDataTextPosition(2);
setO1AxisSide(1);
-*setDataTextAngleDefault(0);
-*setDataTextRadiusDefault(0);
setRiserBarGroupSpacing(100);
setRiserWidth(55);
setFillColor(getSeries(0),new Color(0,0,255));
setFillColor(getSeries(1),new Color(0,0,255));
setFillColor(getSeries(2),new Color(0,0,255));
setFillColor(getSeries(3),new Color(0,0,255));
setFillColor(getSeries(4),new Color(0,0,255));
-*setDataTextAngleDefault(49);
setScaleMax(getY1Axis(),0.7);
-*setDataTextRadiusDefault(22);
-*setDataTextRadius(getSeriesGroup(0,0),0);
setY1AxisSide(0);
setFontSize(getY1Label(),8);
-*setDataTextRadiusDefault(100);
-*setDataTextAngleDefault(150);
setDataTextRadiusDefault(100);
-*setBorderColor(getO1AxisLine(),new Color(223,223,223));
-*setBorderColor(getY1AxisLine(),new Color(212,212,212));
-*setBorderColor(getX1MinorGrid(),new Color(133,133,133));
-*setBorderColor(getY1MinorGrid(),new Color(133,133,133));
setAxisDescending(getY2Axis(),false);
setFillType(getColorByHeight(),2);
setGradientDirection(getColorByHeight(),1);
setGradientNumPins(getColorByHeight(),2);
setGradientPinPosition(getColorByHeight(),0.0,0);
setGradientPinLeftColor(getColorByHeight(),new Color(255,255,255),0);
setGradientPinRightColor(getColorByHeight(),new Color(0,0,255),0);
setGradientPinPosition(getColorByHeight(),1.0,1);
setGradientPinLeftColor(getColorByHeight(),new Color(255,0,0),1);
setGradientPinRightColor(getColorByHeight(),new Color(255,255,255),1);
setLegendMarkerPosition(1);
setMarkerDisplay(false);
setUseSeriesShapes(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(false);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,1);
setSeriesType(1,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),2);
setY2LabelDisplay(true);
setY2AxisSide(0);
setY2MajorGridDisplay(true);
setY2MajorGridStyle(0);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),-1);
setTextFormatPattern(getY2Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(false);
setLegendTextAutofit(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSize(getY1Label(),8);
-*setFillColor(getY1Label(),new Color(133,133,133));
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontSizeAbsolute(getO1Label(),true);
setPlace(false);
setY1MajorTickDisplay(true);
setY1MajorTickStyle(3);
-*setY1MAJORGRIDSTYLE(true);
-*setY1MinorGridDisplay(true);
-*setY1MinorGridStyle(3);
-*setY1MinorTickStep(2);
-*setSeriesDefaultTransparentBorderColor(false);
-*setUseSeriesBorderDefaults(false);
setDisplay(getDataTextStackedTotalOnTop(), true);
setFillColor(getDataTextStackedTotalOnTop(),new Color(0,0,255));
setDataTextPosition(0);
setTextRotation(getDataTextStackedTotalOnTop(), 0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='WHITE',
BACKCOLOR='WHITE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
ENDSTYLE
END
-RUN