Syntax 3: For the fill pattern and symbols in a graph
Description
Specifies the fill pattern and symbol for data markers in a
series.
Applies to
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
controlname.SetSeriesStyle ( { graphcontrol, } seriesname, enumvalue ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph in which you want to set the |
|
graphcontrol (DataWindow control only) (optional) |
A string whose value is the name of the graph in the |
|
seriesname |
A string whose value is the name of the series in which |
|
enumvalue |
A value of an enumerated datatype specifying an |
|
To change the fill pattern, use a FillPattern Bdiagonal! (Lines from lower left to upper right) Diamond! Fdiagonal! (Lines from upper left to lower right) Horizontal! Solid! Square! Vertical! To change the symbol type, use a grSymbolType NoSymbol! SymbolHollowBox! SymbolX! SymbolStar! SymbolHollowUpArrow! SymbolHollowCircle! SymbolHollowDiamond! SymbolSolidDownArrow! SymbolSolidUpArrow! SymbolSolidCircle! SymbolSolidDiamond! SymbolPlus! SymbolHollowDownArrow! SymbolSolidBox! |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, SetSeriesStyle returns null.
Usage
Data points in a series can have their own style settings.
Settings made with SetDataStyle set the style of individual data points
and override series settings.
The graph stores style information for properties that do not
apply to the current graph type. For example, you can set the fill
pattern in a two-dimensional line graph or the line style in a bar
graph, but that fill pattern or line style will not be visible.
For a graph in a DataWindow, you can specify the appearance of a
series in the graph before PowerBuilder draws the graph. To do so,
define a user event for pbm_dwngraphcreate and call SetSeriesStyle in
the script for that event. The event pbm_dwngraphcreate is triggered
just before a graph is created in a DataWindow object.
Using SetSeriesStyle with DirectX 3D Graphs
You cannot use a fill pattern or specify specific symbols for a
series.
Examples
This statement sets the symbol used for the series named Costs in
the graph gr_product_data to a plus sign:
|
1 2 |
gr_product_data.SetSeriesStyle("Costs", & SymbolPlus!) |
This statement sets the symbol used for the series named Costs in
the graph gr_computers in the DataWindow control dw_equipment to
X:
|
1 2 |
dw_equipment.SetSeriesStyle("gr_computers", & "Costs", SymbolX!) |
See also