PointData(Double) Constructor
In This Article
Initializes a new instance of the PointData class with specified settings.
Namespace: DevExpress.WinUI.Charts
Assembly: DevExpress.WinUI.Charts.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
argument | Double | The point’s numeric argument. |
#Remarks
The following code adds an empty point with a numeric argument to a Cartesian chart. The chart shows empty points as gaps in series data:
<Charts:CartesianChart x:Name="chart">
<!--...-->
</Charts:CartesianChart>
public MainWindow() {
this.InitializeComponent();
// Create a series:
Series series = new Series();
// Specify the series view:
series.View = new PointSeriesView();
// Create a point collection and assign it to the series:
PointDataCollection pointCollection = new PointDataCollection();
pointCollection.ArgumentScaleType = ScaleType.Numerical;
pointCollection.ValueScaleType = ScaleType.Numerical;
series.Data = pointCollection;
// Add points to the series:
pointCollection.Add(new PointData(1, 10));
pointCollection.Add(new PointData(2)); // This point is empty.
pointCollection.Add(new PointData(3, 20));
// Add other points.
// Add the series to the chart:
chart.Series.Add(series);
}
See Also