SetDataPieExplode – PB Docs 150

SetDataPieExplode method (Graphs in DataWindows)

Description

Explodes a pie slice in a pie graph. The exploded slice is
moved away from the center of the pie, which draws attention to
the data. You can explode any number of slices of the pie.

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 that identifies the series.

datapoint

The number of the data point (that is,
the pie slice) to be exploded.

percentage

A number between 0 and 100 that is the
percentage of the radius that the pie slice is moved away from the
center. When percentage is 100, the tip of
the slice is even with the circumference of the pie’s circle.

Return Values

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

Usage

If the graph is not a pie graph, SetDataPieExplode has
no effect.

Examples

[PowerBuilder]

This example explodes the pie slice under the pointer to 50% when
the user double-clicks within the graph. The code checks the property GraphType
to make sure the graph is a pie graph. It then finds out whether
the user clicked on a pie slice by checking the series and data
point values set by ObjectAtPointer. The script
is for the DoubleClicked event of the DataWindow control:

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