,System.Collections.Generic.IList{System.Double>
Defined in Type: ScatterUI
Namespace: CrissCross.WPF.Plot
Assembly: CrissCross.WPF.Plot.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
public void InsertData(IList<double> x, IList<double> y)
Summary: Replaces the current scatter plot data with the specified X and Y coordinate values.
Parameters
| Name | Type | Description |
|---|---|---|
x | IList | The collection of X values to plot. The number of elements must match the number of elements in y. Cannot be null. |
y | IList | The collection of Y values to plot. The number of elements must match the number of elements in x. Cannot be null. |
Remarks
Both x and y must contain the same number of elements.
Existing plot data will be replaced with the new values.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if x or y is null. |