version 6.0 (Modified)
Version 6 Note: Starting with version 6, graphs are now supported by the 4D Chart Plug-in, which is integrated within 4th Dimension. The Graph commands from the previous version of 4D are transparently redirected to 4D Chart. In addition, to use the additional 4D Chart commands for customizing a Graph Area located in a form, use the graph parameter (described in this command) as an external area reference for the 4D Chart commands. For detailed information about the 4D Chart commands, refer to the 4D Chart Reference manual.
The GRAPH command is designed to be used with a graph area created in a 4D form. It must be used in a form method or in an object method of one of the form's objects. It can also be used in a method called by one of these methods.
GRAPH SETTINGS (graph; xmin; xmax; ymin; ymax; xprop; xgrid; ygrid; title{; title2; ...; titleN})
Parameter | Type | Description | |
graph | Variable | Name of the Graph area | |
xmin | Number or date or time | Minimum x-axis value for proportional | |
graph (line or scatter plot only) | |||
xmax | Number or date or time | Maximum x-axis value for proportional | |
graph (line or scatter plot only) | |||
ymin | Number | Minimum y-axis value | |
ymax | Number | Maximum y-axis value | |
xprop | Boolean | TRUE for proportional x-axis; FALSE for | |
normal x-axis (line or scatter plot only) | |||
xgrid | Boolean | TRUE for x-axis grid; FALSE for no x-axis grid | |
(only if xprop is TRUE) | |||
ygrid | Boolean | TRUE for y-axis grid; FALSE for no y-axis grid | |
title | String | Title(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. GRAPH SETTINGS has no effect on a pie chart.
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 command GRAPH.
See Also