SummaryOptionsBase.SummaryFunction Property

Gets or sets the summary function that calculates the series points' total value.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Data)]
public string SummaryFunction { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Data)>
Public Property SummaryFunction As String

Property Value

Type Description
String

The string that defines the summary function that calculates the series points' total value.

Property Paths

You can access this nested property as listed below:

Show 12 property paths
Object Type Path to SummaryFunction
Series
.NumericSummaryOptions.SummaryFunction
Series
.DateTimeSummaryOptions.SummaryFunction
Series
.TimeSpanSummaryOptions.SummaryFunction
Series
.QualitativeSummaryOptions.SummaryFunction
SeriesBase
.NumericSummaryOptions.SummaryFunction
SeriesBase
.DateTimeSummaryOptions.SummaryFunction
SeriesBase
.TimeSpanSummaryOptions.SummaryFunction
SeriesBase
.QualitativeSummaryOptions.SummaryFunction
SeriesTemplate
.NumericSummaryOptions.SummaryFunction
SeriesTemplate
.DateTimeSummaryOptions.SummaryFunction
SeriesTemplate
.TimeSpanSummaryOptions.SummaryFunction
SeriesTemplate
.QualitativeSummaryOptions.SummaryFunction

Remarks

The chart control provides the following built-in summary functions:

  • minimum ("MIN([Field_name])");
  • maximum ("MAX([Field_name])");
  • sum ("SUM([Field_name])");
  • average ("AVERAGE([Field_name])");
  • count ("COUNT()").

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