SetSeriesLabelling PowerScript function
Description
Set the series label for a DirectX 3D graph.
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
1 |
<span>controlname</span>.<span></span><span>SetSeriesLabelling</span> ({<span>graphcontrol</span>, } <span>series</span>, <span>value</span> ) |
Argument |
Description |
---|---|
controlname |
The name of the graph in which you want |
graphcontrol (DataWindow control |
(Optional) A string whose value is the |
series |
The string that names the series in which |
value |
Indicates whether to label the series |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, SetSeriesLabelling returns
null.
Usage
SetSeriesLabelling is used to indicate
whether or not to label the series with the data numbers for DirectX
3D Area, Bar, Col, or Line graphs. You cannot use this method with
DirectX 3D Pie graphs.
Examples
These statements obtain the series and data point
of graph gr_1 in the DataWindow control dw_employee.
1 |
integer SeriesNbr, ItemNbr |
1 |
string ls_SeriesName |
1 |
grObjectType clickedtype |
1 |
1 |
// Get the number of the series and datapoint |
1 |
clickedtype = this.ObjectAtPointer("gr_1", & |
1 |
SeriesNbr, ItemNbr) |
1 |
1 |
//Get the name of series |
1 |
ls_SeriesName = dw_employee.SeriesName("gr_1", & |
1 |
SeriesNbr) |
1 |
1 |
// Set Series label |
1 |
dw_employee.<span>SetSeriesLabelling</span>("gr_1", & |
1 |
ls_SeriesName, true) |
These statements obtain the series and data point
of graph gr_1.
1 |
integer SeriesNbr, ItemNbr |
1 |
string ls_SeriesName |
1 |
grObjectType clickedtype |
1 |
1 |
clickedtype = gr_1.ObjectAtPointer(SeriesNbr, & |
1 |
ItemNbr) |
1 |
1 |
ls_SeriesName = gr_1.SeriesName(SeriesNbr) |
1 |
1 |
gr_1.<span>SetSeriesLabelling</span>(ls_SeriesName, true) |