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.
Controls
Graph controls in windows and user objects. Does not apply
to graphs within DataWindow objects (their data comes directly from
the DataWindow).
Syntax
1 |
<span>controlname</span>.<span>ModifyData</span> ( <span>seriesnumber</span>, <span>datapoint</span>, <span>xvalue</span>, <span>yvalue</span> ) |
Argument |
Description |
---|---|
controlname |
The name of the scatter graph in which |
seriesnumber |
The number that identifies the series |
datapoint |
The number of the data point for which |
xvalue |
The new x value of the data you want |
yvalue |
The new y value of the data you want |
Return Values
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 |
integer SeriesNbr |
1 |
SeriesNbr = gr_product.FindSeries("Test One") |
1 |
gr_product_data.<span>ModifyData</span>(SeriesNbr, & |
1 |
9, 4.55, 86.38) |