Does anyone know if it is possible to change the color of the grid lines in a graph. I have a requirement to change them to a very light gray if possible. I have searched the forums and the graph api doc without success. This is what I currently have:
setFillColor(getSeries(0), new Color(123,193,67));
setFillColor(getSeries(1), new Color(200,0,0));
setFillColor(getSeries(2), new Color(34,104,158));
setFillColor(getSeries(3), new Color(226,230,91));
setY1AxisLineDisplay(true); //turns on Y axis line
setO1AxisLineDisplay(true); //turns on X axis line
setFrameDisplay(false); //turns off the frame around the graph
setMarkerDisplay(false); //turns off shapes at each data point
setScaleFromZero(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1TitleString("");
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true); //turn on the numbers on the Y label
setY1MustIncludeZero(true); //include zero on Y always
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='VERDANA',
SIZE=10,
$
ThanksThis message has been edited. Last edited by: Cody,
WebFOCUS 7.6.8 Linux HTML,AHTML,PDF
April 21, 2010, 04:26 AM
Ram Prasad E
setO1MajorGridDisplay(true);
setO1MinorGridDisplay(false);
setO1MajorGridStyle(1);
setY1MajorGridDisplay(true);
setY1MinorGridDisplay(false);
setY1MajorGridStyle(1);
setBorderColor(getY1MajorGrid(), new Color (255,10,10));
setBorderColor(getO1MajorGrid(), new Color (255,10,10));
Note: In your example, both the grids were set display to false. Before adding the above code snippet, make sure you are not overriding any graph setting.