Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Collapse]Fundamentals
    [Expand]Charting Basics
    [Collapse]Professional Charting
      Advanced Charting
      Financial Charting
      Performance
    [Expand]Series Views
    [Expand]Chart Elements
   [Expand]Providing Data
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Performance

A chart's performance depends on the number of elements it displays: the less you show in a chart, the greater its performance. You can use the data aggregation feature to reduce rendered points when you need to show a large number of data points simultaneously. This topic comprises all the approaches that can help you to maintain chart.

Expanded Data Aggregation

You can use the Data Aggregation functionality to configure a more compact and readable view for a large amount of data. When using data aggregation, the chart splits the x-axis into intervals (according to the measurement unit value), and automatically aggregates data for each interval using an aggregation function. The following images illustrate this feature:

Non-aggregated data Data aggregated by year

Refer to the Data Aggregation document for more details.

Expanded Loading Data

The following approaches can help you to accelerate loading data:

  • If possible, store all data points in a few series. Since the Chart control is optimized for rendering a small number of series that have many points, rather than rendering a large number of series with a few points. For example, a single series with a million points is processed faster than 10 series with 100000 points each.

  • Since v16.1, the Chart Control loads data and applies settings when a chart is being rendered. This means you do not have to use the ChartControl.BeginInit and ChartControl.EndInit methods, or the SeriesPointCollection's ChartCollectionBase.BeginUpdate and ChartCollectionBase.EndUpdate methods to accelerate loading data.

  • Manual series point creation is faster than individual series binding (series points are generated based on a data source) and series template binding (series and points are generated based on a data source). However, data binding does not cause a significant performance loss.

  • The best way to add points to the series is using a single operation instead of adding each point separately. The code below demonstrates this approach:

Expanded Automatic Calculations

Range, scale type and layout's automatic calculations require additional resources. The following steps can help accelerate rendering a chart:

Expanded Rendering Visual Elements

Follow the steps below to decrease the time needed for rendering a chart's visual elements:

Expanded Interactivity Optimization

The runtime hit testing, selection and tooltips features require additional CPU and RAM resources and may decrease performance.

Expanded Changeable Data

This section contains tips that allow you to increase performance when a chart shows a dataset that changes frequently.

  • Add and remove series' points when creating a chart that updates its data in real time because changing a SeriesPoint's argument or value results in unnecessary calculations. For example, changing the SeriesPoint.Values property involves a ChartControl.RefreshData method call and updating all the chart's data.

  • Since v17.1, the Chart Control completely processes the following event arguments to avoid completely reloading data in situations where chart is bound to a frequently updated dataset:

    • System.ComponentModel.ListChangedEventArgs - obtained on the System.ComponentModel.IBindingList.ListChanged;
    • System.Collections.Specialized.NotifyCollectionChangedEventArgs - received on the System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged.

    For this reason, use the System.ComponentModel.IBindingList objects to process data efficiently when a chart frequently updates data.

How would you rate this topic?​​​​​​​