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

SetDataPieExplode – PB Docs 2022 – PowerBuilder Library

SetDataPieExplode – PB Docs 2022

SetDataPieExplode

PowerScript function

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.

Applies to

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

Syntax

Argument

Description

controlname

The name of the graph in which you want to explode a pie
slice, or the name of the DataWindow 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 explode a pie
slice.

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 which 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 value

Integer.

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, the function has no effect.

Examples

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 a graph object:

See also

GetDataPieExplode


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