SeriesBase.DateTimeSummaryOptions Property

Returns options that configure how the series calculates summary values of its data source with date-time arguments.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll


public DateTimeSummaryOptions DateTimeSummaryOptions { get; }

Property Value

Type Description

The date-time data source summarization options storage.


The options’ DateTimeSummaryOptions.MeasureUnit property specifies the most detailed data level on data processing. Note that 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