Class XYSeries
- Namespace
- Tudormobile.Wpf.Controls
- Assembly
- Tudormobile.WpfControls.dll
Represents an XY-series data set with explicit X and Y coordinate pairs.
public class XYSeries : ChartSeries
- Inheritance
-
XYSeries
- Inherited Members
Remarks
This class extends ChartSeries by adding a parallel collection of X-coordinate values. This is useful for scatter plots, XY line charts, or any chart type that requires explicit positioning on both axes. The XPoints collection should have the same number of elements as DataPoints (which represent the Y values).
Properties
XPoints
Gets or sets the collection of X-coordinate values that correspond to the data points.
public ObservableCollection<double> XPoints { get; set; }
Property Value
Remarks
Each X point represents the horizontal position for the corresponding Y value in the DataPoints collection. Ensure this collection has the same count as DataPoints for proper chart rendering.