Hi,
I have a problem in setting the font size of x-axis label in my graph.The value for the lable is bit long (about 40-50 chars).
When I try to change the font size using the following api
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),20);
there is no effect when I increase the font size greater than 9.
please find the sample code for testing
DEFINE FILE CAR
DESC/A100 = MODEL ||'-'||MODEL
END
SET GRAPHEDIT=SERVER
SET GRMERGE=ON
SET VZERO = OFF
GRAPH FILE CAR
ON GRAPH SET 3D OFF
ON GRAPH SET GRID ON
ON GRAPH SET LOOKGRAPH VBAR
SUM DEALER_COST ACROSS DESC
ON GRAPH SET GRAPHSTYLE *
setFillMissingData(0);
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,1);
setSeriesType(1,3);
-*setX1LabelRotate(2);
setTextRotation(getO1Label(0),1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setRiserWidth(20);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),20);
setPlace(true);
ENDSTYLE
END
one more thing I found was, the font size increases when i set setPlace to false. but that places the legends disorder.
Is there a way to incerase the font size with setPlace to be true.
Thanks & Regards,
Sridevi
Webfocus 7.6.5 | Windows |
HTML