Restores the color of a data point to the default color for its series.
PowerBuilder DataWindow DataWindow control
DataWindow Web ActiveX DataWindow control
integer dwcontrol.ResetDataColors ( string graphcontrol, integer seriesnumber, long datapointnumber )
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 1 if it succeeds and -1 if an error occurs. If any argument’s value is null, ResetDataColors returns null.
Default 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.
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)