ComponentOne FlexReport for WinForms
Binding FlexChart Field with Data
Working with FlexReportDesigner > Adding FlexReport Fields > FlexChart Field > Binding FlexChart Field with Data

When you add the FlexChart field to your report, you need to bind it to data for populating data in the displayed chart, say Column chart, as shown below. The following steps show how to bind the FlexChart field with data in FlexReportDesigner application.

  1. Create a new report in C1FlexReportDesigner.
  2. In Data tab, bind the Main data source with Products table of C1Nwind.mdb database.
  3. Under INSERT tab, select FlexChart field and draw it in the Header section.
  4. Select the FlexChart.
  5. In the Properties window, set the desired Chart Type, say Column chart, from ChartType dropdown.
  6. Navigate to Series and click the ellipsis button next to it.
  7. In the Series Collection Editor, click Add button to add a series data group.
  8. Navigate to Data and set the DataSourceName as Main.
  9. Set Label as ProductID.
  10. Set XExpression to ProductID.
  11. Set YExpression to UnitPrice.
  12. Close the Editor.
  13. Click on Preview.