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.v19.2.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public DateTimeSummaryOptions DateTimeSummaryOptions { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Data)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property DateTimeSummaryOptions As DateTimeSummaryOptions

Property Value

Type Description
DateTimeSummaryOptions

The date-time data source summarization options storage.

Remarks

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.

Examples

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