SetDataLabelling

Description

Set the data label for a DirectX 3D graph.

Applies to

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

Syntax

controlname.SetDataLabelling ({graphcontrol}, series, datapoint, value)

Argument

Description

controlname

The name of the graph from which you want data, or the name of the DataWindow control containing the graph.

graphcontrol (DataWindow control only)

(Optional) A string whose value is the name of the graph in the DataWindow control.

seriesnumber

The number that identifies the series in which you want to label a data point.

datapoint

The data point that you want to label.

value

Indicates whether to label the data with its value.

Returns

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

Usage

SetDataLabelling is used to indicate whether or not to label the data with the numbers for DirectX 3D Area, Bar, Col, or Line graphs. You cannot use this method with DirectX 3D Pie graphs.

Examples

Example 1

These statements set the series and datapoint for the graph gr_1 in the DataWindow control dw_employee.

integer SeriesNbr, ItemNbr

grObjectType clickedtype


// Get the number of the series and datapoint

clickedtype = this.ObjectAtPointer("gr_1", & 

		SeriesNbr, ItemNbr)


// Set data label

dw_employee.SetDataLabelling("gr_1", & 

		SeriesNbr, ItemNbr, true)

Example 2

These statements set the series and datapoint for the graph gr_1.

integer SeriesNbr, ItemNbr

grObjectType clickedtype


clickedtype = gr_1.ObjectAtPointer(SeriesNbr, &

		ItemNbr)


gr_1.SetDataLabeling(SeriesNbr, ItemNbr, true)

See also