A graph is a representation of a series of data points (values). The graph can have a single series of values or multiple series.
Graph property |
Datatype |
Description |
---|---|---|
String |
A description of the control and/or its purpose for use by accessibility tools such as readers for visually impaired users. |
|
String |
A label that briefly describes the control, such as the text in a button or the name of a menu item. |
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the control is. |
|
Long |
Specifies the numeric value of the background color: -2 to 16,777,215. For more information about color, see the section called “RGB” in PowerScript Reference. |
|
Boolean |
Specifies whether the control has a border. |
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. Values are: StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
Boolean |
Specifies whether PowerBuilder moves the control to the top of the front-to-back order of the window or DataWindow control. |
|
grAxis |
Specifies the properties of the category axis of the graph. |
|
grSortType |
Specifies how the categories are sorted. |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
Integer |
Specifies the percent the depth is of the width of the graph. |
|
Boolean |
Specifies whether PowerBuilder puts the graph automatically into Drag mode. Values are: TRUE -- When the control is clicked, the control is automatically in Drag mode. FALSE -- When the control is clicked, the control is not automatically in Drag mode. You have to manually put the control into Drag mode by using the Drag function. |
|
String |
Specifies the name of the stock icon or the file containing the icon you want to display when the user drags a control (the ICO file). The default icon is a box the size of the control. When the user drags a control, the icon displays when the control is over an area in which the control can be dropped (a valid drop area). When the control is over an area that is not a valid drop area, the No-Drop icon displays. |
|
Integer |
Specifies the angle of front-to-back elevation. |
|
Boolean |
Specifies whether the control is enabled (can be selected). Values are: TRUE -- Control can be selected. FALSE -- Control cannot be selected. |
|
Boolean |
Specifies whether a dotted rectangle (the focus rectangle) frames the control when it has focus. Values are: TRUE -- Control will be framed when it has focus. FALSE -- Control will not be framed when it has focus. |
|
grGraphType (enumerated) |
Specifies the type of the graph. Values are: 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 PowerBuilder units. |
|
grLegendType (enumerated) |
Specifies the alignment of the text in the graph legend. Values are: AtBottom! AtLeft! AtRight! AtTop! NoLegend! |
|
LegendDispAttr |
grDispAttr |
Specifies the type style for the text in the graph legend, including the text style, size, color, and rotation. |
Integer |
Specifies the percent of the width of the data markers by which different series in a graph overlap. |
|
Integer |
Specifies the distance the graph is from the front of the window. |
|
PieDispAttr |
grDispAttr |
Specifies properties of the text in pie graph labels, including the text style, size, color, and rotation. |
String |
Contains the name of the stock pointer or the file containing the pointer used for the graph. |
|
Boolean |
Indicates whether the 3D graph is rendered in the DirectX style. |
|
Integer |
Specifies how much to rotate the graph from left to right. |
|
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 graph. |
Integer |
Specifies the space between data markers in the graph as a percent. |
|
Integer |
Specifies the tab value of the control in the tabbing sequence (0 means the user cannot tab to the control). |
|
String |
Specifies the tag value of the control. |
|
Long |
Specifies the color to be used for the text in the control. |
|
String |
Specifies the text of the title for the graph. |
|
TitleDispAttr |
grDispAttr |
Specifies the type style for the text in the graph title, including the text style, size, color, and rotation. |
Values |
grAxis |
Specifies the values of the value axis of the graph. |
Boolean |
Specifies whether the control is visible. Values are: TRUE -- Control is visible. FALSE -- Control is not visible. |
|
Integer |
Specifies the stroke weight of text in the control; for example, 400 for normal or 700 for bold. |
|
Integer |
Specifies the X position (the distance from the left edge of the parent window), in PowerBuilder units. |
|
Y |
Integer |
Specifies the Y position (the distance from the top of the parent window), in PowerBuilder units. |
Graph event |
Occurs |
---|---|
Clicked in PowerScript Reference |
When the control is clicked (selected or unselected) |
Constructor in PowerScript Reference |
Immediately before the Open event occurs in the window |
Destructor in PowerScript Reference |
Immediately after the Close event occurs in the window |
DoubleClicked in PowerScript Reference |
When the control is double-clicked (selected or unselected) |
DragDrop in PowerScript Reference |
When a dragged control is dropped on the control |
DragEnter in PowerScript Reference |
When a dragged control enters the control |
DragLeave in PowerScript Reference |
When dragged control leaves the control |
DragWithin in PowerScript Reference |
When a dragged control is within the control |
GetFocus in PowerScript Reference |
Just before the control receives focus (before it is selected and becomes active) |
Help in PowerScript Reference |
When the user presses the F1 key or drags the context help button (question mark) from the title bar to a menu item or control |
LoseFocus in PowerScript Reference |
When the control loses focus (becomes inactive) |
Other in PowerScript Reference |
When a Windows message occurs that is not a PowerBuilder event |
RButtonDown in PowerScript Reference |
When the right mouse button is pressed on the control |
Graph function |
Datatype returned |
Description |
---|---|---|
AddCategory in PowerScript Reference |
Integer |
Adds a category to the graph. |
AddData in PowerScript Reference |
Long |
Adds a value to the end of the specified series for the graph. |
AddSeries in PowerScript Reference |
Integer |
Adds a series to the graph and assigns the series a number. |
CategoryCount in PowerScript Reference |
Integer |
Counts the categories in the graph. |
CategoryName in PowerScript Reference |
String |
Obtains the name of the specified category in the graph. |
ClassName in PowerScript Reference |
String |
Returns the name assigned to the control. |
Clipboard in PowerScript Reference |
Integer |
Copies the graph in bitmap (BMP) format to the clipboard. |
DataCount in PowerScript Reference |
Long |
Returns the number of data points in a specified series in the graph. |
DeleteCategory in PowerScript Reference |
Integer |
Deletes the specified category and the data values in the series from the graph. |
DeleteData in PowerScript Reference |
Integer |
Deletes the data value in the specified data point in the specified series in the graph. |
DeleteSeries in PowerScript Reference |
Integer |
Deletes the specified series and the data values in the series from the graph. |
Drag in PowerScript Reference |
Integer |
Starts or ends dragging of the control. |
FindCategory in PowerScript Reference |
Integer |
Obtains the number of the specified category in the graph. |
FindSeries in PowerScript Reference |
Integer |
Obtains the number PowerBuilder assigned to the specified series when it was added to the graph. |
GetContextService in PowerScript Reference |
Integer |
Creates a reference to a context-specific instance of the specified service. |
GetData in PowerScript Reference |
Double |
Obtains the value of the specified data point in the specified series in the graph. See also GetDataValue in PowerScript Reference. |
GetDataLabelling in PowerScript Reference |
Integer |
Determines whether the data at a given data point is labeled in a DirectX 3D graph. |
GetDataPieExplode in PowerScript Reference |
Integer |
Reports the percentage by which a pie slice is exploded in a pie graph. |
GetDataStyle in PowerScript Reference |
Integer |
Finds out the appearance of a data point in a series. Each data point in a series can have individual appearance settings. There are different syntaxes, depending on what settings you want to check: colors, line style, fill pattern, or symbol. |
GetDataTransparency in PowerScript Reference |
Integer |
Obtains the transparency percentage of a series in a DirectX 3D graph. |
GetDataValue in PowerScript Reference |
Integer |
Returns the value of the specified data in the specified series in the specified graph. |
GetParent in PowerScript Reference |
PowerObject |
Returns a reference to the name of the parent object. |
GetSeriesLabelling in PowerScript Reference |
Integer |
Obtain the series labelling for a DirectX 3D graph. |
GetSeriesStyle in PowerScript Reference |
Integer |
Finds out the appearance of a series in a graph. The appearance settings for individual data points can override the series setting, so the values obtained from this function may not reflect the current state of the graph. There are several syntaxes, depending on what you want to get: colors; line style, fill pattern, or symbol; or whether the series is an overlay. |
GetSeriesTransparency in PowerScript Reference |
Integer |
Obtains the transparency percentage of a series in a DirectX 3D graph. |
Hide in PowerScript Reference |
Integer |
Makes the control invisible. |
ImportClipboard in PowerScript Reference |
Long |
Copies the contents of the clipboard to the graph, starting in the specified column. |
ImportFile in PowerScript Reference |
Long |
Copies the contents of the specified file to the graph, starting in the specified column. |
ImportString in PowerScript Reference |
Long |
Imports the contents from the specified string to the graph, starting in the specified column. |
InsertCategory in PowerScript Reference |
Integer |
Inserts a new category before an existing category in the graph. |
InsertData in PowerScript Reference |
Long |
Inserts a new data point into the graph before a specified data point and moves existing data points to the right. |
InsertSeries in PowerScript Reference |
Integer |
Inserts a new series before an existing series in the graph. |
ModifyData in PowerScript Reference |
Integer |
Changes the value of the specified data point in the specified series in the graph to the specified value, and optionally modifies the data for the specified tick mark. |
Move in PowerScript Reference |
Integer |
Moves the control to a specified location. |
ObjectAtPointer in PowerScript Reference |
GrObjectType |
Stores the number of the series the pointer is over in the graph and the number of the specified data point in reference values, and identifies the object type. |
PointerX in PowerScript Reference |
Integer |
Returns the distance of the pointer from the left edge of the control. |
PointerY in PowerScript Reference |
Integer |
Returns the distance of the pointer from the top of the control. |
PostEvent in PowerScript Reference |
Boolean |
Adds an event to the end of the message queue for the control. |
Print in PowerScript Reference |
Integer |
Prints the control. |
Reset in PowerScript Reference |
Integer |
Deletes data in the graph as specified. |
ResetDataColors in PowerScript Reference |
Integer |
Resets the color of a data point to the series color. |
Resize in PowerScript Reference |
Integer |
Changes the size of the control. |
SaveAs in PowerScript Reference |
Integer |
Saves the contents of the graph to a file in the specified format. |
SeriesCount in PowerScript Reference |
Integer |
Determines how many series there are in the graph. |
SeriesName in PowerScript Reference |
String |
Obtains the name of the specified series in the graph. |
SetDataPieExplode in PowerScript Reference |
Integer |
Explodes a pie slice in a pie graph. |
SetDataLabelling in PowerScript Reference |
Integer |
Set the data label for a DirectX 3D graph. |
SetDataStyle in PowerScript Reference |
Integer |
Specifies the appearance of a data point in a graph. There are several syntaxes, depending on what you want to set: colors, line style and width, or fill pattern or symbol. |
SetDataTransparency in PowerScript Reference |
Integer |
Sets the transparency percentage of a data point in a series in a DirectX 3D. |
SetFocus in PowerScript Reference |
Integer |
Sets focus to the control. |
SetPosition in PowerScript Reference |
Integer |
Specifies the position of the control in the front-to-back order of the window. |
SetRedraw in PowerScript Reference |
Integer |
Controls automatic redrawing of the control after a change in its properties. |
SetSeriesLabelling in PowerScript Reference |
Integer |
Set the series label for a DirectX 3D graph. |
SetSeriesStyle in PowerScript Reference |
Integer |
Specifies the appearance of a series in a graph. There are several syntaxes, depending on what you want to change: colors, line style and width, fill pattern or symbol, or whether the series is an overlay. |
SetSeriesTransparency in PowerScript Reference |
Integer |
Sets the transparency percentage of a series in a DirectX 3D graph. |
Show in PowerScript Reference |
Integer |
Makes the control visible. |
TriggerEvent in PowerScript Reference |
Integer |
Triggers a specified event in the control and executes the script for the event. |
TypeOf in PowerScript Reference |
Object |
Returns the type of the control. |