Focal Point
Graph: how do I control whitespace between Header - Data - Legend - Footing?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5971045832

July 24, 2007, 12:45 PM
<dave@cdoc>
Graph: how do I control whitespace between Header - Data - Legend - Footing?
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
July 24, 2007, 12:52 PM
KevinG
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
July 24, 2007, 01:20 PM
FrankDutch
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