The WebChartControl allows its Series to be bound to data in two ways:
- You are manually creating a series and bind it to the required fields in the data source.
- The WebChartControl dynamically creates series based on the template settings that can be accessed via the ChartControl.SeriesTemplate property.
In this demo, the second approach is used. The number of series is displayed at the view's top left corner.
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 GSP per Region for each Year. Otherwise, if "Region" is selected, the chart shows GSP per Year for each Region.
Note: In this demo, you're able to click on a particular bar, and specific information about the currently selected series and its point will be displayed in the top-left corner of the chart.
Related Video: ASP.NET Charts - Databinding a Series Template