A newer version of this page is available. Switch to the current version.

DateTimeSummaryOptions Class

Date-time summarization options storage.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v19.1.dll


public class DateTimeSummaryOptions :

The following members accept/return DateTimeSummaryOptions objects:


The SeriesBase.DateTimeSummaryOptions property has this type.

The series groups values with more detailed argument values into a collection with the key that has the required precision value. Then, the summary function calculates series points’ values by these collections.

Note that the options’ DateTimeSummaryOptions.MeasureUnit specifies the most data detail level. And, any options change leads to data reload. Use the AxisBase.DateTimeScaleOptions to display less detail data without data reload.


This example demonstrates how to use the summary options to configure the date-time data source summarization:

List<SaleItem> dataSource = this.viewModel.GetSaleItems();
this.chartControl.DataSource = dataSource;
SeriesTemplate template = this.chartControl.SeriesTemplate;
template.SeriesDataMember = "Category";
template.ArgumentDataMember = "Company";
template.DateTimeSummaryOptions.MeasureUnit = DateTimeMeasureUnit.Month;
template.DateTimeSummaryOptions.SummaryFunction = "SUM([Income])";
template.View = new StackedBarSeriesView();


See Also