Last time, when I take away the SET GRAPHEDIT = OFF code off my fex, the graph print & show up just fine. But now, it's quite the opposite where it didn’t show up anything except a box with X on it. So when I put the line of code above back in my fex, then the graph shows back up. But my problem is that, I can’t print the graph in colors. When I hit print preview, it gave me the chart with white block & no label neither. Here is my script.
SET GRAPHEDIT = OFF
GRAPH FILE EXAMPLE
HEADING
" &VAR Compared to <VAR1 Average"
"&NOW"
PRINT
FIELD1 AS '% Field One'
FIELD2 AS 'Field 2'
FIELD3 AS 'Field 3'
FIELD4 AS 'Field 4'
ACROSS FIELD 4 AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHSTYLE *
set Selectionenable(5);
setLegendMarkerPosition(3);
setConnectLineMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MinorGridDisplay(true);
setSeriesType(0,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MinorGridDisplay(true);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
ENDSTYLE
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET GRID ON
-*ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 600
END
SET GRAPHEDIT = OFF
GRAPH FILE EXAMPLE
HEADING
" &VAR Compared to <VAR1 Average"
"&NOW"
FIELD1 AS '% Field One'
FIELD2 AS 'Field 2'
FIELD3 AS 'Field 3'
FIELD4 AS 'Field 4'
ACROSS FIELD 4 AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHSTYLE *
set Selectionenable(5);
setLegendMarkerPosition(3);
setConnectLineMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MinorGridDisplay(true);
setSeriesType(0,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MinorGridDisplay(true);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
ENDSTYLE
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET GRID ON
-*ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 600
END