[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [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]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Charting Basics
   [Expand]Series Views
   [Expand]Chart Elements
   [Collapse]Providing Data
     Create a Series Manually
     Manually Add Points to a Series
     Specify Series Data Members
     Generate Series from a Data Source
     Integration with a Data Grid, Vertical Grid, Tree List or List Box via ControlRowSource
     Pivot Charting (Integration with a Pivot Grid Control)
     Series Scale Types
     Series Colorizer
     Drill Down
   [Expand]Data Representation
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Additional Resources
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst 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]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)

Specify Series Data Members

This document describes how to specify a data source for a manually created series, and populate series points automatically based on the data source table. This is an alternative approach to manually adding series points.

After you manually create a series, it is not displayed unless it has points. Thus, you can force series to obtain their data from your project's data source.

To add a project data source, click the chart's smart tag. In its actions list, expand the Choose Data Source drop-down list and select Add Project Data Source....

Next, proceed to steps 6-11 of Lesson 3 - Bind Chart Series to Data. After you have finished connecting to the data, make sure that appropriate values are assigned to the chart's ChartControl.DataSource and ChartControl.DataAdapter properties.

Since each series point is defined by both an argument and its corresponding value (and, some series view types require multiple values for each argument), you should specify an appropriate argument data member and value data member(s).

To quickly access these properties, click the chart's smart tag, and choose Series... in its actions list.

Then, in the invoked Series Collection Editor, select a series and switch to the Properties tab. In this tab, specify the SeriesBase.ArgumentDataMember and SeriesBase.ValueDataMembers properties.

Note that if a series uses the chart control's data source, it is not necessary to define the Series.DataSource property. It should only be specified when series use separate data sources different from that of the chart control.

Now, points will be created and populated automatically, as long as there are records (rows) in the specified data columns.

Note that at design time, the chart displays mock points for series, to use PC resources more efficiently. To force the loading of real data, click Populate in the chart's actions list.

To learn about the most important series options, refer to Series.

Expanded See Also

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