Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Changing Graph Grid line colors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Changing Graph Grid line colors
 Login/Join
 
Silver Member
posted
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,
$
  


Thanks

This message has been edited. Last edited by: Cody,


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report This Post
Master
posted Hide Post
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.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Silver Member
posted Hide Post
Thanks Ram Prasad E, that did the trick.

My other option was removing the grid completely and it looks like i pasted that code by mistake above.


WebFOCUS 7.6.8
Linux
HTML,AHTML,PDF
 
Posts: 37 | Registered: June 12, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Changing Graph Grid line colors

Copyright © 1996-2020 Information Builders