ComponentOne FlexChart for WinForms
Multiple Pie Charts
FlexPie > Multiple Pie Charts

In some scenarios, you might want to visualize a bit more than a single pie chart, and use multiple Pie Charts together. The FlexPie control  empowers a user to create multiple Pie Charts based on the same data source. The user can create multiple pie charts by simply specifying several comma-separated strings of field names in the Binding property of FlexPie class. This means you don't have to add any additional FlexPie controls for multiple Pie Charts.

Multiple Pie Charts can help compare data across different groups. It is also the right visualization choice to present key indicators/facts about your topic of interest.

The following image shows two Pie Charts, Online Sales and Offline Sales for five different products. Computer, Software, CellPhones, Video Games and Musical Instruments.

Adding multiple pie charts using the same data source is depicted programmatically below:

FlexPie1.DataSource = _data
FlexPie1.BindingName = "Name"
FlexPie1.Binding = "Online,Offline"
FlexPie1.Legend.Position = C1.Chart.Position.Auto
FlexPie1.Header.Style.Font = New Font("Times New Roman", 15, FontStyle.Bold)
FlexPie1.Legend.Style.Font = New Font("Times New Roman", 15, FontStyle.Regular)
FlexPie1.Titles = {"Online Sales", "Offline Sales"}
FlexPie1.Header.Content = "Product Sales By Season"
flexPie1.DataSource = data;
flexPie1.BindingName = "Name";
flexPie1.Binding = "Online,Offline";

flexPie1.Titles = new[] { "Online Sales", "Offline Sales" };
flexPie1.Header.Content = "Product Sales By Season";
flexPie1.Header.Style.Font = new Font("Times New Roman", 15, FontStyle.Bold);
flexPie1.Legend.Position = C1.Chart.Position.Auto;
flexPie1.Legend.Style.Font = new Font("Times New Roman", 12, FontStyle.Regular);