4D v16.3

GRAPH SETTINGS

Home

 
4D v16.3
GRAPH SETTINGS

GRAPH SETTINGS 


 

GRAPH SETTINGS ( graphPicture ; xmin ; xmax ; ymin ; ymax ; xprop ; xgrid ; ygrid ; title {; title2 ; ... ; titleN} ) 
Parameter Type   Description
graphPicture  Picture variable in Picture variable
xmin  Longint, Date, Time in Minimum x-axis value for proportional graph (line or scatter plot only)
xmax  Longint, Date, Time in Maximum x-axis value for proportional graph (line or scatter plot only)
ymin  Longint in Minimum y-axis value
ymax  Longint in Maximum y-axis value
xprop  Boolean in TRUE for proportional x-axis; FALSE for normal x-axis (line or scatter plot only)
xgrid  Boolean in TRUE for x-axis grid; FALSE for no x-axis grid (only if xprop is TRUE)
ygrid  Boolean in TRUE for y-axis grid; FALSE for no y-axis grid
title  String in Title(s) for graph legend(s)

GRAPH SETTINGS changes the graph settings for graph displayed in a form. The graph must have already been defined using the GRAPH command. GRAPH SETTINGS has no effect on a pie chart. This command must be called in the same process as the form.

Note: You must not call this command if the graph was generated using the GRAPH command with the Object type graphSettings parameter. Refer to the description of the GRAPH command for more information.

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 xmin and xmax parameters are only taken into account for proportional graphs (xprop is True).

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.

Note: With the 4D Server 64-bit version for OS X, the xprop parameter is also taken into account for area graphs (type 5).

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 

_o_GRAPH TABLE
GRAPH

 
PROPERTIES 

Product: 4D
Theme: Graphs
Number: 298

 
HISTORY 

Modified: 4D v11 SQL
Modified: 4D v14
Modified: 4D v14 R5
Modified: 4D v15 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)