All docs
V21.2
21.2 (EAP/Beta)
21.1
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
You are viewing help content for pre-release software. This document and the features it describes are subject to change.

EmptyPointOptions.ProcessPoints Property

Specifies how the chart control handles empty series points.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

Declaration

public ProcessEmptyPointsMode ProcessPoints { get; set; }

Property Value

Type Description
ProcessEmptyPointsMode

A ProcessEmptyPointsMode value that defines how to handle empty points.

Available values:

Name Description Image
InsertZero

The chart control initializes empty points with zero values.

ProcessEmptyPointsMode.InsertZero

Interpolate

The chart control initializes empty points with mock values calculated based on neighboring points.

ProcessEmptyPointsMode.Interpolate

Ignore

Empty points are skipped.

ProcessEmptyPointsMode.Ignore

Property Paths

You can access this nested property as listed below:

Show 39 property paths
Object Type Path to ProcessPoints
AreaSeriesView
.EmptyPointOptions.ProcessPoints
AreaSeriesViewBase
.EmptyPointOptions.ProcessPoints
BarSeriesView
.EmptyPointOptions.ProcessPoints
BoxPlotSeriesView
.EmptyPointOptions.ProcessPoints
BubbleSeriesView
.EmptyPointOptions.ProcessPoints
CandleStickSeriesView
.EmptyPointOptions.ProcessPoints
FinancialSeriesViewBase
.EmptyPointOptions.ProcessPoints
FullStackedAreaSeriesView
.EmptyPointOptions.ProcessPoints
FullStackedBarSeriesView
.EmptyPointOptions.ProcessPoints
FullStackedLineSeriesView
.EmptyPointOptions.ProcessPoints
FullStackedSplineAreaSeriesView
.EmptyPointOptions.ProcessPoints
FullStackedStepAreaSeriesView
.EmptyPointOptions.ProcessPoints
GanttSeriesView
.EmptyPointOptions.ProcessPoints
LineSeriesView
.EmptyPointOptions.ProcessPoints
OverlappedGanttSeriesView
.EmptyPointOptions.ProcessPoints
OverlappedRangeBarSeriesView
.EmptyPointOptions.ProcessPoints
PointSeriesView
.EmptyPointOptions.ProcessPoints
PointSeriesViewBase
.EmptyPointOptions.ProcessPoints
RangeAreaSeriesView
.EmptyPointOptions.ProcessPoints
RangeBarSeriesView
.EmptyPointOptions.ProcessPoints
ScatterLineSeriesView
.EmptyPointOptions.ProcessPoints
SeriesViewColorEachSupportBase
.EmptyPointOptions.ProcessPoints
SideBySideBarSeriesView
.EmptyPointOptions.ProcessPoints
SideBySideFullStackedBarSeriesView
.EmptyPointOptions.ProcessPoints
SideBySideGanttSeriesView
.EmptyPointOptions.ProcessPoints
SideBySideRangeBarSeriesView
.EmptyPointOptions.ProcessPoints
SideBySideStackedBarSeriesView
.EmptyPointOptions.ProcessPoints
SplineAreaSeriesView
.EmptyPointOptions.ProcessPoints
SplineSeriesView
.EmptyPointOptions.ProcessPoints
StackedAreaSeriesView
.EmptyPointOptions.ProcessPoints
StackedBarSeriesView
.EmptyPointOptions.ProcessPoints
StackedLineSeriesView
.EmptyPointOptions.ProcessPoints
StackedSplineAreaSeriesView
.EmptyPointOptions.ProcessPoints
StackedStepAreaSeriesView
.EmptyPointOptions.ProcessPoints
StepAreaSeriesView
.EmptyPointOptions.ProcessPoints
StepLineSeriesView
.EmptyPointOptions.ProcessPoints
StockSeriesView
.EmptyPointOptions.ProcessPoints
WaterfallSeriesView
.EmptyPointOptions.ProcessPoints
XYDiagramSeriesViewBase
.EmptyPointOptions.ProcessPoints

Example

How to: Display Chart Empty Points

This example shows how to customize display options for empty points of a bar series view.

This chart displays series with empty points.

Cast the XYDiagramSeriesViewBase.EmptyPointOptions property to the EmptyPointOptions type to access a series’ empty point settings.

Specify the ProcessPoints property to define how the chart handles empty points. In this example, the chart calculates mock values for empty points.

using DevExpress.XtraCharts;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace EmptyPointRepsentation {
    public partial class Form1 : Form {
        ChartControl chart { get { return chartControl1; } }
        public Form1() {
            InitializeComponent();

            chart.DataSource = WeatherDataProvider.Data;
            Series series = new Series("Wind", ViewType.Bar);
            series.SetDataMembers("Date", "Wind");
            chart.Series.Add(series);

            BarSeriesView view = (BarSeriesView)series.View;

            EmptyPointOptions emptyPointOptions = view.EmptyPointOptions;
            emptyPointOptions.ProcessPoints = ProcessEmptyPointsMode.Interpolate;
            emptyPointOptions.Color = Color.FromArgb(100, Color.DarkGray); 

        }
    }

    public static class WeatherDataProvider {
        static List<WeatherPoint> data;

        public static List<WeatherPoint> Data {
            get {
                if (data == null)
                    InitCollection();
                return data;
            }
        }
        static void InitCollection() {
            data = new List<WeatherPoint>();
            int lastYear = DateTime.Now.Year - 1;
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 10) });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 11), Wind = 5 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 12), Wind = 5 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 13), Wind = 6 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 14), Wind = 3 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 15) });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 16), Wind = 6 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 17), Wind = 5 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 18), Wind = 5 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 19), Wind = 4 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 20), Wind = 3 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 21), Wind = 7 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 22), Wind = 2 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 23) });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 24) });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 25), Wind = 4 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 26), Wind = 5 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 27), Wind = 4 });
            data.Add(new WeatherPoint() { Date = new DateTime(lastYear, 7, 28), Wind = 4 });
        }

        public class WeatherPoint {
            public DateTime Date { get; set; }
            public double? Wind { get; set; }
        }
    }
}
See Also