Graph object
A graph is a representation of a series of data points (values). The
graph can have a single series of values or multiple series.
Properties
|
Graph property |
Datatype |
Description |
|---|---|---|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Long |
Specifies the numeric value of the background |
|
|
Boolean |
Specifies whether the control has a |
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to |
|
|
grAxis |
Specifies the properties of the category axis of |
|
|
grSortType |
Specifies how the categories are |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Integer |
Specifies the percent the depth is of the width of |
|
|
Boolean |
Specifies whether PowerBuilder puts the graph TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags a control, the icon |
|
|
Integer |
Specifies the angle of front-to-back |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
|
Boolean |
Specifies whether a dotted rectangle (the focus TRUE — Control will be framed when it has FALSE — Control will not be framed when it |
|
|
grGraphType (enumerated) |
Specifies the type of the graph. Values Area3D! AreaGraph! Bar3DGraph! Bar3DObjGraph! BarGraph! BarStack3DObjGraph! BarStackGraph! Col3DGraph! Col3DObjGraph! ColGraph! ColStack3DObjGraph! ColStackGraph! Line3D! LineGraph! Pie3D! PieGraph! ScatterGraph! |
|
|
Integer |
Specifies the height of the control, in |
|
|
grLegendType (enumerated) |
Specifies the alignment of the text in the graph AtBottom! AtLeft! AtRight! AtTop! NoLegend! |
|
|
LegendDispAttr |
grDispAttr |
Specifies the type style for the text in the graph |
|
Integer |
Specifies the percent of the width of the data |
|
|
Integer |
Specifies the distance the graph is from the front |
|
|
PieDispAttr |
grDispAttr |
Specifies properties of the text in pie graph |
|
String |
Contains the name of the stock pointer or the file |
|
|
Boolean |
Indicates whether the 3D graph is rendered in the |
|
|
Integer |
Specifies how much to rotate the graph from left to |
|
|
grAxis |
Specifies the series in the graph. |
|
|
grSortType |
Specifies how the series are sorted. |
|
|
ShadeColor |
Long |
Specifies the color used for the shading in the |
|
Integer |
Specifies the space between data markers in the |
|
|
Integer |
Specifies the tab value of the control in the |
|
|
String |
Specifies the tag value of the |
|
|
Long |
Specifies the color to be used for the text in the |
|
|
String |
Specifies the text of the title for the |
|
|
TitleDispAttr |
grDispAttr |
Specifies the type style for the text in the graph |
|
Values |
grAxis |
Specifies the values of the value axis of the |
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Integer |
Specifies the stroke weight of text in the control; |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Y |
Integer |
Specifies the Y position (the distance from the top |
Events
|
Graph event |
Occurs |
|---|---|
|
When the control is clicked (selected or |
|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When the control is double-clicked (selected or |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When dragged control leaves the |
|
|
When a dragged control is within the |
|
|
Just before the control receives focus (before it |
|
|
When the user presses the F1 key or drags the |
|
|
When the control loses focus (becomes |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
Functions
|
Graph function |
Datatype returned |
Description |
|---|---|---|
|
Integer |
Adds a category to the graph. |
|
|
Long |
Adds a value to the end of the specified series for |
|
|
Integer |
Adds a series to the graph and assigns the series a |
|
|
Integer |
Counts the categories in the graph. |
|
|
String |
Obtains the name of the specified category in the |
|
|
String |
Returns the name assigned to the |
|
|
Integer |
Copies the graph in bitmap (BMP) format to the |
|
|
Long |
Returns the number of data points in a specified |
|
|
Integer |
Deletes the specified category and the data values |
|
|
Integer |
Deletes the data value in the specified data point |
|
|
Integer |
Deletes the specified series and the data values in |
|
|
Integer |
Starts or ends dragging of the |
|
|
Integer |
Obtains the number of the specified category in the |
|
|
Integer |
Obtains the number PowerBuilder assigned to the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Double |
Obtains the value of the specified data point in |
|
|
Integer |
Determines whether the data at a given data point |
|
|
Integer |
Reports the percentage by which a pie slice is |
|
|
Integer |
Finds out the appearance of a data point in a There are different syntaxes, |
|
|
Integer |
Obtains the transparency percentage of a series in |
|
|
Integer |
Returns the value of the specified data in the |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Obtain the series labelling for a DirectX 3D |
|
|
Integer |
Finds out the appearance of a series in a graph. There are several syntaxes, depending on what |
|
|
Integer |
Obtains the transparency percentage of a series in |
|
|
Integer |
Makes the control invisible. |
|
|
Long |
Copies the contents of the clipboard to the graph, |
|
|
Long |
Copies the contents of the specified file to the |
|
|
Long |
Imports the contents from the specified string to |
|
|
Integer |
Inserts a new category before an existing category |
|
|
Long |
Inserts a new data point into the graph before a |
|
|
Integer |
Inserts a new series before an existing series in |
|
|
Integer |
Changes the value of the specified data point in |
|
|
Integer |
Moves the control to a specified |
|
|
GrObjectType |
Stores the number of the series the pointer is over |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Prints the control. |
|
|
Integer |
Deletes data in the graph as |
|
|
Integer |
Resets the color of a data point to the series |
|
|
Integer |
Changes the size of the control. |
|
|
Integer |
Saves the contents of the graph to a file in the |
|
|
Integer |
Determines how many series there are in the |
|
|
String |
Obtains the name of the specified series in the |
|
|
Integer |
Explodes a pie slice in a pie graph. |
|
|
Integer |
Set the data label for a DirectX 3D |
|
|
Integer |
Specifies the appearance of a data point in a There are several syntaxes, depending on what |
|
|
Integer |
Sets the transparency percentage of a data point in |
|
|
Integer |
Sets focus to the control. |
|
|
Integer |
Specifies the position of the control in the |
|
|
Integer |
Controls automatic redrawing of the control after a |
|
|
Integer |
Set the series label for a DirectX 3D |
|
|
Integer |
Specifies the appearance of a series in a There are several syntaxes, depending on what |
|
|
Integer |
Sets the transparency percentage of a series in a |
|
|
Integer |
Makes the control visible. |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |