Set the series label for a DirectX 3D graph.
DataWindow control
integer dwcontrol.SetSeriesLabelling (string graphcontrol, string series, boolean value)
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 string that names the series in which you want to change the series label setting. |
value |
Indicates whether to label the series with its values. |
Returns 1 if it succeeds and -1 if an error occurs. If any argument’s value is null, SetSeriesLabelling returns null.
SetDataLabelling is used to indicate whether or not to label the series with the data numbers for data in DirectX 3D Area, Bar, Col, or Line graphs. You cannot use this method with DirectX 3D Pie graphs.
These statements obtain the series and datapoint of graph gr_1 and the DataWindow control dw_employee.
integer SeriesNbr, ItemNbr
string ls_SeriesName
grObjectType clickedtype
// Get the number of the series and datapoint
clickedtype = this.ObjectAtPointer("gr_1", &
SeriesNbr, ItemNbr)
//Get the name of series
ls_SeriesName = dw_employee.SeriesName("gr_1", &
SeriesNbr)
// Set Series label
dw_employee.SetSeriesLabelling("gr_1", &
ls_SeriesName, true)