Customizing Graphs Using SET Parameters

How to:

Reference:

The GRAPH environment includes a set of parameters that control the appearance of the graph and offer some additional control when you run the request.

For example, the BSTACK parameter enables you to specify that the bars on a bar graph are to be stacked, rather than placed side by side.


Top of page

x
Syntax: How to Use SET Parameters With GRAPH Requests

To set the parameters that control the GRAPH environment, use the appropriate variation of the SET parameter.

SET parameter=value,parameter=value...

For a list of supported GRAPH parameters, see Values and Functions of SET Parameters for Graphs.

Note:



Example: Using SET Parameters With GRAPH Requests

The following shows how to set the height (y-axis) and width (x-axis) for a graph.

SET HAXIS=75,VAXIS=40
GRAPH FILE filename 
.
.
.
END

Top of page

x
Reference: Values and Functions of SET Parameters for Graphs

Graph SET Parameter

Values

Parameter Function

3D
ON|OFF

When set to ON, a three-dimensional chart is produced. When set to OFF, a two-dimensional chart is produced. ON is the default.

AUTOTICK
ON|OFF

When set to ON, tick mark intervals are automatically set. ON is the default. (See also HTICK and VTICK.)

BARNUMB
ON|OFF

When set to ON, places the summary values at the ends of the bars on bar graphs or slices on pie graphs. OFF is the default.

BSTACK
ON|OFF

When set to ON, specifies that the bars on a bar graph are to be stacked rather than placed side by side. OFF is the default.

EMBEDHEADING
ON|OFF

When set to ON, embeds the heading in the chart. When set to OFF, places the heading above the chart on the HTML page. OFF is the default.

GRAPHDEFAULT
ON|OFF

When set to ON, WebFOCUS default styles are used. When set to OFF, defaults are taken from the legacy graph API. ON is the default value.

GRAPHEDIT
graphedit

As of WebFOCUS 8.0, this parameter has been deprecated. For information about editing charts, see the WebFOCUS InfoAssist User’s Manual.

GRID
ON|OFF

When set to ON, specifies that a grid is to be drawn on the graph at the horizontal and vertical class marks (see also VGRID). OFF is the default.

HAUTO
ON|OFF

When set to ON, specifies automatic scaling of the horizontal axis unless overridden by the user. If set to OFF, user must supply values for HMAX and HMIN. ON is the default.

HAXIS

Specifies the width in characters of the horizontal axis. This parameter can be adjusted for graphs generated offline. HAXIS is ignored for online displays since the width of the graph is automatically adjusted to the width of the display area.

HCLASS
nnn

Specifies the horizontal interval mark when AUTOTICK=OFF (see also HTICK).

HMAX
nnn

Specifies the maximum value on the horizontal axis when the automatic scaling is not used (HAUTO=OFF).

HMIN
nnn

Specifies the minimum value on the horizontal axis when the automatic scaling is not used (HAUTO=OFF).

HSTACK
ON|OFF

When set to ON, specifies that the bars on a histogram are to be stacked, rather than placed side by side. OFF is the default.

HTICK
nnn

Specifies the horizontal axis tick mark interval when AUTOTICK is OFF (see also HCLASS).

LOOKGRAPH
option

Specifies the graph type. For more information, see Controlling Chart Type Using LOOKGRAPH.

VAUTO
ON|OFF

When set to ON, specifies automatic scaling of the vertical axis unless overridden by the user. If set to OFF, the user must supply values for VMAX and VMIN. ON is the default.

VAXIS

Specifies page length in lines. This parameter can be adjusted for graphs generated offline. VAXIS is ignored for online displays since the height of the graph is automatically adjusted to the display area.

VCLASS
nnn

Specifies the vertical interval mark when AUTOTICK=OFF (see also VTICK).

VGRID
ON|OFF

When set to ON, specifies that a grid is to be drawn on the graph at the horizontal and vertical class marks (see also GRID). OFF is the default.

VMAX
nnn

Specifies the maximum value on the vertical axis when the automatic scaling is not used (VAUTO=OFF).

VMIN
nnn

Specifies the minimum value on the vertical axis when the automatic scaling is not used (VAUTO=OFF).

VTICK
nnn

Specifies the vertical axis tick mark interval when AUTOTICK is OFF (see also VCLASS).

VZERO
ON|OFF

Determines whether missing values along the y-axis are stored or ignored. If set to ON, missing data along the y-axis is treated as zero. If set to OFF, missing data along the y-axis is ignored and values are not stored in the plot matrix. OFF is the default.


WebFOCUS