[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)

Define a Template for Automatic Series

This document describes automatic series creation based on a template. For alternative approaches, refer to Create a Series Manually and Bind a Series to a Data Source.

The automatic series creation is used when the number of series is either unknown or too large.

Note that in the Diagram.Series collection, the auto-created series precede the manually created series.

To connect the ChartControl to a database, assign a data source to the ChartControl.DataSource property.

Next, define the name of the data column where new series will be created (and named) via the Diagram.SeriesDataMember property.

For the Diagram.SeriesTemplate property, choose the common view type for the auto-created series, as shown in the image below.

Next, assign the required data fields to the Series.ArgumentDataMember and Series.ValueDataMember properties. These properties determine the names of data fields from which auto-created series should obtain data for their point's arguments and values.

Note that you do not need to specify the Series.ArgumentScaleType property (set to the Auto mode by default) because the type of series points' arguments is detected automatically based on the type of underlying data.

For details on this, refer to Series Scale Types.


You cannot obtain and customize an individual auto-created series at design time. You can define the view type or other settings for an auto-created series individually in the ChartControl.BoundDataChanged event handler.

To learn more on how to define a template for automatic series, see Lesson 4 - Use a Series Template for Auto-Created Series.

Expanded See Also

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