Charting - Data Binding Using Series Template

The G7 GDP, billions of US$ chart showing 2015 series, 2014 series, 2013 series, 2012 series, 2011 series, 2010 series.

DevExpress MVC Chart allows its series to be bound to data in two ways:

  • All Series objects are manually added to the Series collection, and each series is independently bound to appropriate data members from a chart's datasource.
  • All Series objects are generated dynamically from a chart's data source based on template settings specified via the SeriesTemplate property.

This demo illustrates how to use the second approach, when all series are auto-generated from a datasource according to a specified series template.

In this demo, you can use the Series Data Member drop-down list to select a data field whose values are used to generate and populate series. If the "Year" field is selected, the chart shows GDP per Country for each Year. Otherwise, if "Country" is selected, the chart shows GDP per Year for each Country.

Version: v2017 vol 1.5
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.