Syntax 4 For
the symbols in a graph
Description
Specifies the symbol for data markers in a series.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
|
1 |
integer dwcontrol.SetSeriesStyle ( string graphcontrol, string seriesname, grSymbolType symbolvalue ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control containing |
|
graphcontrol |
A string whose value is the name of the graph in |
|
seriesname |
A string whose value is the name of the series in |
|
symbolvalue |
A value of the grSymbolType enumerated datatype For a list of |
Return value
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.
You can specify the appearance of a series in the graph before the
application 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 specify specific symbols for the data markers in a
series.
Examples
PowerBuilder
This statement sets the symbol 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