[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Collapse]Providing Data
      Create a Series Manually
      Add Points to a Series Manually
      Bind a Series to a Data Source
      Define a Template for Automatic Series
      Provide Data for the Drill Mode
      Best Practices: Display Large Data
      Series Scale Types
      Data Aggregation
      Calculate Summaries
      Data Filtering
      Work Time and Workday Configuration
      Top N and Others
      Empty Points
    [Expand]Chart Elements
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Calculate Summaries

The Chart Control can apply a summary function to calculate data source value summaries and display them as Series Points.

Expanded Summary vs Aggregation

Aggregation is similar to summaries but the Chart Control queries and stores data in memory differently.

Summary Aggregation
Store Data Chart stores summarized values. Chart stores raw data source values.
Change Detail Level Chart re-loads data from the data source. Chart re-calculates data in memory.
Behave on Zoom Chart does not re-calculate aggregated values when it is zoomed. Chart re-calculates value aggregates on each zoom level.
Memory Consumption Low High

Expanded Apply a Summary Function

You can use Chart Designer or markup to apply a summary function.

Use the Chart Designer

  • Run the Chart Designer.

  • Use the Element Tree on the left to select a series. Then, open its Properties tab on the right.

  • Click the Summary property's button and select the New Summary item.

  • Use the Function property menu to select a summary function.

  • Type a name of the data source field that provides data for summarization.

  • Click the Save and Exit button to save changes and close the designer.

Use Markup

The following example shows how to apply the "SUM" function:

The example above uses the following API members to configure summary calculations:

Member Description
Series.Summary Gets or sets the series data point summarization settings.
Summary (see Summary) Stores the series data point summarize options.
Summary.Function Specifies the summary function that calculates data point values.
DataMemberSummaryFunction.ValueDataMember Gets or sets the data source field that provides data to be aggregated.

Create a Custom Summary Function

The following example shows how to create the "Standard Deviation (STDEV.P)" summary function and apply it to chart data:

Expanded Numeric, Time-Span and Date-Time Axis Specifics

For numerical, time-span and date-time x-axis scales, the summary function aggregates data point values for each interval the MeasureUnit (NumericSummaryOptions.MeasureUnit, TimeSpanSummaryOptions.MeasureUnit or DateTimeSummaryOptions.MeasureUnit) property specifies.

The following images illustrate how changes to the measurement unit affect point summaries:

The following example shows how to change a measurement unit used to calculate numeric x-axis arguments:

Is this topic helpful?​​​​​​​