Syntax 2 For the line associated with a data point – PB Docs 126

Syntax 2 For the line associated with a data point

Description

Specifies the style and width of a data point’s line
in a graph.

Controls

PowerBuilder DataWindow DataWindow
control

DataWindow Web ActiveX DataWindow
control

Syntax

[PowerBuilder]

[Web ActiveX]

Argument

Description

dwcontrol

A reference to the DataWindow control
containing the graph.

graphcontrol

A string whose value is the name of the
graph in the DataWindow control.

seriesnumber

The number of the series in which you
want to set the line style and width of a data point.

datapointnumber

The number of the data point for which
you want to set the line style and width.

linestyle

A value of the LineStyle enumerated datatype
(in PowerBuilder) or an integer (for the Web ActiveX) specifying a
line style pattern of dots, dashes, and solid lines. For a list
of line style values, see LineStyle.

linewidth (optional for
PowerBuilder)

An integer whose value is the width of
the line in pixels.

Return Values

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, SetDataStyle returns
null.

Usage

To change the appearance of a series, use SetSeriesStyle.
The settings you make for the series are the defaults for all data
points in the series.

You can specify the appearance of a data point in the graph
before the application draws the graph. To do so:

  • PowerBuilder

    Define a user event for pbm_dwngraphcreate and call SetDataStyle
    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 SetDataStyle methods in
    code for the onGraphCreate event.

Examples

[PowerBuilder]

This example checks the line style used for data point 10
in the series named Costs in the graph gr_computers in
the DataWindow control dw_equipment. If it is dash-dot,
the SetDataStyle sets it to continuous. The line width
stays the same:

See Also


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