Syntax 2: For scatter graphs
Description
Changes the value of a data point in a series on a graph. You
specify the data point by position and provide an x and y value.
Applies to
Graph controls in windows and user objects. Does not apply to
graphs within DataWindow objects (their data comes directly from the
DataWindow).
Syntax
|
1 |
controlname.ModifyData ( seriesnumber, datapoint, xvalue, yvalue ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the scatter graph in which you want to |
|
seriesnumber |
The number that identifies the series in which you want |
|
datapoint |
The number of the data point for which you want to |
|
xvalue |
The new x value of the data you want to modify |
|
yvalue |
The new y value of the data you want to modify |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, ModifyData returns null.
Usage
For scatter graphs, there are no categories. You specify the
position in the series whose data you want to modify and provide the x
and y values for the data.
Examples
These statements modify the data point 9 in the series named Test
One in the scatter graph gr_product_data:
|
1 2 3 4 |
integer SeriesNbr SeriesNbr = gr_product.FindSeries("Test One") gr_product_data.ModifyData(SeriesNbr, & 9, 4.55, 86.38) |
See also