Data Binding in Windows Forms Pivot Chart

13 Jul 20261 minute to read

The pivot chart control allows you to retrieve multidimensional data from either an IEnumerable list or any data table to present the pivot information in an appropriate way. For example, IEnumerable data population is used in the pivot chart. The ItemSource of the pivot chart is passed with the IEnumerable list.

//Adds ItemSource to the Control.
this.pivotChart1.ItemSource = ProductSales.GetSalesData();
'Adds ItemSource to the Control.
Me.pivotChart1.ItemSource = ProductSales.GetSalesData()