Data Binding to Many Chart Areas
RadChart's DefaultView provides you with layout that consists of Chart Title, Chart Area and Chart Legend. However, in some cases, you might need to have more than one ChartArea in order to display two or more charts separately. Of course, you will also need to use data binding via SeriesMapping/ItemMapping in order to populate the RadChart with data.
When you have multiple ChartAreas, for each series you can specify which chart area to be used to display the series. To do that, in XAML, use the SeriesMapping.ChartAreaName property and specify the name of the ChartArea you want to be used for that series. Alternatively, you can specify the ChartArea in the code behind by using SeriesMapping.ChartArea property - simply set it to the desired ChartArea instance.
The example below demonstrates how to bind two series to two different ChartAreas. Which means that you cannot use the DefaultView, so you will have to first set RadChart.UseDefaultView to False. Then, add a Grid with two rows and two columns. On the first row add one ChartTitle for each of the columns. On the second row add two ChartAreas. Give a name to each ChartArea and it will be used later to bind series to a chart area: "webBrowsersShare2008Chart" and "webBrowsersShare2009Chart" respectively.
The last step is to bind the data via SeriesMapping/ItemMapping. For each series, set the ChartAreaName to the name of the previously defined ChartArea:
As you can see from the image below, the RadChart layout is changed and contains two ChartAreas - for year 2008 and for year 2009. Two series are created and for each one of them CharAreaName property is set to the appropriate ChartArea. Thus, the data for year 2008 goes to the left ChartArea while the data for 2009 goes to the right ChartArea. Another option is to use SeriesMapping.AreaName from the code behind to set the desired instance of the ChartArea directly: