SetDataLabelling

Description

Set the data label for a DirectX 3D graph.

Applies to

DataWindow control

Syntax

integer dwcontrol.SetDataLabelling (string graphcontrol, int seriesnumber, int datapoint, 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.

seriesnumber

The number that identifies the series in which you want to set the data labelling value.

datapoint

The datapoint.

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 data in DirectX 3D Area, Bar, Col, or Line graphs. You cannot use this method with DirectX 3D Pie graphs.

Examples

Example 1

These statements obtain 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)

See also