This example demonstrates how to bind the report's XRChart control to detail data when a report is bound to the collection of data classes. The Entity Framework ORM is used in this example as a report's data source.
The BindingSource controls are used in this example to provide a data class shema to the XtraReport and XRChart control at design time. To provide data to the report at runtime, the DataSourceDemanded event handler is used. The XRChart.BeforePrint event handler is used to get a data object corresponding to the current row and bind the XRChart control to the data.
Note that this example is built on the ASP.NET WebForms technology. However, our XtraReports suite is a cross-platform product, so you can use the same approach in other .NET applications.