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     Graph: how do I control whitespace between Header - Data - Legend - Footing?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph: how do I control whitespace between Header - Data - Legend - Footing?
 Login/Join
 
<dave@cdoc>
posted
I am using WebFOCUS 7.1.6 Developer Studio and have created a series of graphs that I am not quite satisfied with. Generally speaking, these graphs consist of several lines of header information followed by the data area within a rectangular frame, followed by a single line legend and conclude with several lines of footing information (I will include a code sample at the bottom of this missive).

I have found that when I increase the ON GRAPH SET VAXIS nnn property (attribute?) by 100 pixels, that about 20 pixels increase the whitespace between the header and data area, about 60 pixels are used in the data area and the remaining 20 pixels increase the whitespace between the data and the legend.

I would really like to know which setXxx properties control the whitespace spacing between the header and the data area, between the data area and the legend and between the legend and the footing. Also, I would like to know if there are any properties that control the left and right (horizontal) orientation of the data area. Can anyone provide some information on this?

I do have access to the WebFOCUS Graphics Version 7 Release 1.3 document but have not discovered the information I am looking for.

I also went through quite a few of the topics in this bulletin board but might have missed a previous posting discussing this.

Anyway, any help would be appreciated.

Thanks

dave

-*
-* Create the graph
-*
GRAPH FILE VISITS
SUM VISITS.VISITS.CSTD1 AS 'Minimum' VISITS.VISITS.CSTD2
AS 'Minimum Restrictive' VISITS.VISITS.CSTD3 AS 'Medium' VISITS.VISITS.CSTD4
AS 'Close' VISITS.VISITS.CSTD5 AS 'Max Ad Seg or Maximum'
BY HIGHEST VISITS.VISITS.PRVDR AS ' '
HEADING
"Company"
"Department"
"Report Title"
"From "Graph created on -INCLUDE facarray_list1
FOOTING
-INCLUDE vstarray_list1
WHERE VISITS.fac_cd EQ &FACCD.(OR(FIND fac_cd IN VISITS)).Please enter Facility Code value.;
WHERE VISITS.vtyp_cd EQ &VSTCD.(OR(FIND vtyp_cd IN VISITS)).Please enter Visit Type Code value.;
ON GRAPH SET LOOKGRAPH HBRSTK1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
-*SET APPLET SIZING=ON
ON GRAPH SET VAXIS 640
ON GRAPH SET HAXIS 832
ON GRAPH PCHOLD FORMAT JPEG
ON GRAPH SET GRAPHSTYLE *
setLegendMarkerPosition(4); -* legend style
setO1LabelDisplay(true); -* displays provider names
setO1AxisSide(0); -* puts provider names on left side
setO1MajorGridDisplay(true); -* puts grid display by provider names
setO1MajorGridStyle(3); -* style of grid display by provider names
setY1LabelDisplay(true); -* turn on label display
setY1AxisSide(0); -* centers the display
setY1MajorGridDisplay(true); -* controls grid display
setY1MajorGridStyle(0); -* grid display style
setReverseGroups(true); -* stacks provider names top to bottom
setSeriesDefaultTransparentBorderColor(true); -* controls border mode
setUseSeriesBorderDefaults(true); -* removes border display lines
setFontName(getLegendText(),"Serif"); -* legend control
setFontSizeAbsolute(getLegendText(),true); -* legend control
setFontSize(getLegendText(),11); -* legend font size
setFontStyle(getLegendText(),2); -* legend font style
setFontSizeAbsolute(getY1Label(),true); -* Y label control
setFontSizeAbsolute(getO1Label(),true); -* Provider name control
setFontSize(getO1Label(),14); -* Provider name size
setFontStyle(getO1Label(),2); -* Provider name style
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=N2,
COLOR=RGB(255 255 72),
$
TYPE=DATA,
COLUMN=N3,
COLOR=RGB(198 99 0),
$
TYPE=DATA,
COLUMN=N4,
COLOR=RGB(121 155 255),
$
TYPE=DATA,
COLUMN=N5,
COLOR=RGB(72 255 72),
$
TYPE=DATA,
COLUMN=N6,
COLOR='RED',
$
TYPE=HEADING,
FONT='ARIAL',
COLOR='BLACK',
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
SIZE=12,
$
TYPE=HEADING,
LINE=2,
SIZE=12,
$
TYPE=FOOTING,
FONT='ARIAL',
COLOR='BLACK',
STYLE=BOLD,
JUSTIFY=CENTER,
$
ENDSTYLE
END
 
Report This Post
Platinum Member
posted Hide Post
Dave,

The graph manual covers the topic is a round about way. I think chapter 2...how graphs are laid out. But here is a snippet of code we use...
setRect(getTitle(),new Rectangle(-17550,6550,29850,4750));
  


Basically, we set the rectangle size for the title. Chapter 2, I think explains this coordinate system. You may have to use;

setPlace(false);

as well.

Hope this helps,

Kevin


WF 7.6.10 / WIN-AIX
 
Posts: 141 | Location: Denver, CO | Registered: December 09, 2005Report This Post
Virtuoso
posted Hide Post
The heading (and footing) are in fact not a part of the graph.
See what happens if you create the graph and select it from the screen and copy it to p.e. an Word document.
The heading is not there.
If you save the graph to a file the heading is not included too.
So the control on the spacing is not so easy.
Kevin puts the text in a title field and that is a part of the graph.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report 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     Graph: how do I control whitespace between Header - Data - Legend - Footing?

Copyright © 1996-2020 Information Builders