Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 2: For lines in a graph – PB Docs 2022 – PowerBuilder Library

Syntax 2: For lines in a graph – PB Docs 2022

Syntax 2: For lines in a graph

Description

Specifies the style and width of a series’ lines in a
graph.

Applies to

Graph controls in windows and user objects, and graphs in
DataWindow controls objects

Syntax

Argument

Description

controlname

The name of the graph in which you want to set the line
style and width of a series, or the name of the DataWindow
control containing the graph.

graphcontrol (DataWindow control only) (optional)

A string whose value is the name of the graph in the
DataWindow control in which you want to set the line style and
width.

seriesname

A string whose value is the name of the series for which
you want to set the line style and width.

linestyle

A value of the LineStyle enumerated datatype. Values
are:

Continuous!

Dash!

DashDot!

DashDotDot!

Dot!

Transparent!

linewidth

An integer specifying the width of the line in
pixels.

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.

Examples

This statement sets the line style and width for the series named
Costs in the graph gr_product_data:

See also

GetDataStyle

GetSeriesStyle

SeriesName

SetDataStyle


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x