Getting information about the data
There are quite a few methods for getting information about
data in a graph in a DataWindow control at execution time. For all
methods, you provide the name of the graph within the DataWindow
as the first argument. You can provide your own name for graph controls
when you insert them in the DataWindow painter. If the presentation
style is Graph, you do not need to name the graph.
PowerBuilder
These methods get information about the data and its display. For
several of them, an argument is passed by reference to hold the
requested information:
Method |
Information |
---|---|
CategoryCount |
The number of categories in a graph |
CategoryName |
The name of a category, given its number |
DataCount |
The number of data points in a series |
FindCategory |
The number of a category, given its name |
FindSeries |
The number of a series, given its name |
GetData |
The value of a data point, given its |
GetDataLabelling |
The display setting for the data label |
GetDataPieExplode |
The percentage at which a pie slice is |
GetDataStyle |
The color, fill pattern, or other visual |
GetDataTransparency |
The transparency percentage of a data |
GetDataValue |
The value of a data point, given its |
GetSeriesLabelling |
The display setting for the series label |
GetSeriesStyle |
The color, fill pattern, or other visual |
GetSeriesTransparency |
The transparency percentage of a series |
ObjectAtPointer |
The graph element the mouse was positioned |
SeriesCount |
The number of series in a graph |
SeriesName |
The name of a series, given its number |
Web ActiveX
These methods get information about the data and its display. There
are additional helper methods available whenever the equivalent PowerBuilder
method uses an argument passed by reference. These helper methods
are identified in the second column of the following table (and
are described in the DataWindow Reference):
Method |
Information |
---|---|
CategoryCount |
The number of categories in a graph. |
CategoryName |
The name of a category, given its number. |
DataCount |
The number of data points in a series. |
FindCategory |
The number of a category, given its name. |
FindSeries |
The number of a series, given its name. |
ObjectAtPointer |
The graph element the mouse was positioned |
SeriesCount |
The number of series in a graph. |
SeriesName |
The name of a series, given its number. |
Getting information |
|
GetDataPieExplode |
The percentage at which a pie slice is |
GetDataStyleColor |
The color of a specified data point. |
GetDataStyleFill |
The fill pattern of a specified data |
GetDataStyleLine |
The line style and width of a specified |
GetDataStyleSymbol |
The symbol of a specified data point. |
Getting a data |
|
GetDataDate |
The value of a data point that contains |
GetDataNumber |
The value of a numeric data point, given |
GetDataString |
The value of a string data point, given |
Getting information |
|
GetSeriesStyleColor |
The color of a specified series. Call GetSeriesStyleColorValue |
GetSeriesStyleFill |
The fill pattern of a specified series. |
GetSeriesStyleLine |
The line style and width used by a specified |
GetSeriesStyleOverlay |
Indication whether a series in a graph |
GetSeriesStyleSymbol |
The symbol of a specified series. Call GetSeriesStyleSymbolValue |