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     White Spacing around a Graph save as a JPEG

Read-Only Read-Only Topic
Go
Search
Notify
Tools
White Spacing around a Graph save as a JPEG
 Login/Join
 
Silver Member
posted
Hi all I am looking for the API set commamd that decreases the whitespace around a graph. I am also looking to decrease the space in between the x axis. For example may range is
0 20 40 60 80 100 which is what I want but the gap between them are quite wide what set command shrinks this. I am using the Focus Graph Documentation, but I don't see how to do this.


WebFOCUS 7.1.3 on Win 2000
 
Posts: 45 | Location: North Carolina | Registered: February 17, 2005Report This Post
Virtuoso
posted Hide Post
The gap - to the best of my knowledge - is dictated by the width of the graph. Mess with the following to change it.
ON GRAPH SET VAXIS 17
ON GRAPH SET HAXIS 210


The following will help you change the white space around the graph. I can't remember what does what, you'll just have to read and play.
setExtendToFrameEdge(true);            // Extend graph to use entire presentation area.
setFootnoteDisplay(false);
setSubtitleDisplay(false);
setTitleDisplay(false);
setToolTipDisplay(false);              // Turn off tool tips
setFrameDisplay(false);                // Turn off graph frame display
setLegendDisplay(false);               // Turn off legend
setLegendAutomatic(false);
setRect(getFrame(), new Rectangle(-16000,-16000,32000,32000));
setPlace(true); 


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver Member
posted Hide Post
Thanks dhagen, I will have to keep playing with the setRect(getFrame(), new Rectangle(-16000,-16000,32000,32000)).

Do you know how to change the color of the background not of the graph but the whitespace behind the graph?


WebFOCUS 7.1.3 on Win 2000
 
Posts: 45 | Location: North Carolina | Registered: February 17, 2005Report This Post
Virtuoso
posted Hide Post
Setting background colour:
setFillColor(getChartBackground(), new Color(255 255 204)); // chart background stuff

Please read the doc. This is all there.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report 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     White Spacing around a Graph save as a JPEG

Copyright © 1996-2020 Information Builders