GRAPH SETTINGS

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


GRAPH SETTINGS (graph; xmin; xmax; ymin; ymax; xprop; xgrid; ygrid; title{; title2; ...; titleN})

ParameterTypeDescription
graphGraph variable | Pict variableGraph area or Picture variable
xminNumber or date or timeMinimum x-axis value for proportional
graph (line or scatter plot only)
xmaxNumber or date or timeMaximum x-axis value for proportional
graph (line or scatter plot only)
yminNumberMinimum y-axis value
ymaxNumberMaximum y-axis value
xpropBooleanTRUE for proportional x-axis; FALSE for
normal x-axis (line or scatter plot only)
xgridBooleanTRUE for x-axis grid; FALSE for no x-axis grid
(only if xprop is TRUE)
ygridBooleanTRUE for y-axis grid; FALSE for no y-axis grid
titleStringTitle(s) for graph legend(s)

Description

GRAPH SETTINGS changes the graph settings for graph displayed in a form. The graph must have already been displayed with the GRAPH command. It can have been drawn using the 4D Chart plug-in (graph is a graph variable or a 4D Chart area reference) or by the SVG engine (graph is a picture variable). GRAPH SETTINGS has no effect on a pie chart. This command must be placed in the form method or in an object method belonging to the form, or yet again in a project method called by one of these two methods.

The xmin, xmax, ymin, and ymax parameters all set the minimum and maximum values for their respective axes of the graph. If the value of any pair of these parameters is a null value (0, ?00:00:00?, or !00/00/00!, depending on the data type), the default graph values will be used.

The xprop parameter turns on proportional plotting for line graphs (type 4) and scatter graphs (type 6). When TRUE, it will plot each point on the x-axis according to the point's value, and then only if the values are numeric, time, or date.

The xgrid and ygrid parameters display or hide grid lines. A grid for the x-axis will be displayed only when the plot is a proportional scatter or line graph.

The title parameter(s) labels the legend.

Example

See example for the GRAPH command.

See Also

GRAPH, GRAPH TABLE.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next