Syntax 3 For the fill pattern in a graph
Description
Specifies
the fill pattern for data markers in a series.
Controls
PowerBuilder DataWindow DataWindow
control
DataWindow Web ActiveX DataWindow
control
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span>.<span>SetSeriesStyle</span> ( string <span>graphcontrol</span>, string <span>seriesname</span>, FillPattern <span>fillvalue</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>SetSeriesStyleFill</span> ( string <span>graphcontrol</span>, string <span>seriesname</span>, number <span>fillvalue</span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control |
graphcontrol |
A string whose value is the name of the |
seriesname |
A string whose value is the name of the |
fillvalue |
A value of the FillPattern enumerated For a list of values, see FillPattern. |
Return Values
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:
-
PowerBuilder
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. -
Web ActiveX
Call any of the SetSeriesStyle methods
in the onGraphCreate event.
You cannot use a fill pattern for a series.
Examples
This statement sets the fill pattern used for the series named Costs
in the graph gr_computers in the DataWindow control dw_equipment
to Horizontal:
1 |
dw_equipment.<span>SetSeriesStyle</span>("gr_computers", & |
1 |
"Costs", Horizontal!) |