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.v24.2.dll
NuGet Package: DevExpress.Charts
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
public DateTimeSummaryOptions DateTimeSummaryOptions { get; }
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.
Example
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