GetDataPieExplode – PB Docs 126

GetDataPieExplode method (Graphs in DataWindows)

Description

Reports the percentage of the pie graph’s radius
that a pie slice is moved away from the center of the pie graph.
An exploded slice is moved away from the center of the pie in order
to draw attention to the data.

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

series

The number that identifies the series

datapoint

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

percentage

An integer variable in which you want
to store the percentage that the pie slice is exploded

Return Values

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

Examples

This example reports the percentage that a pie slice
is exploded when the user clicks on that slice. The code checks
whether the graph is a pie graph using the property GraphType. 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 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