ResetDataColors

Description

Restores the color of a data point to the default color for its series.

Applies to

PowerBuilder DataWindow DataWindow control

DataWindow Web ActiveX DataWindow control

Syntax

PowerBuilder

integer dwcontrol.ResetDataColors ( string graphcontrol, integer seriesnumber, long datapointnumber )

Web ActiveX

number dwcontrol.ResetDataColors ( string graphcontrol, number seriesnumber, number datapointnumber )

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 of the series in which you want to reset the color of a data point

datapointnumber

The number of the data point for which you want to reset the color

Returns

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

NoteDefault color for data points To set the color for a series, use SetSeriesStyle. The color you set for the series is the default color for all data points in the series.

Examples

Example 1

PowerBuilder These statements change the color of data point 10 in the series named Costs in the graph gr_computers in the DataWindow control dw_equipment to the color for the series:

SeriesNbr = dw_equipment.FindSeries("gr_computers", &

		"Costs")

dw_equipment.ResetDataColors("gr_computers", &

		SeriesNbr, 10)

See also