Data Binding

Description

The C1PieChart supports binding data from an external data source on the server.


Data binding is allowed by setting the DataSourceID or DataSource and DataBindings. The following properties are used to bind Data and Label values to the specified data field:

  • DataSourceID - for specifying the data source which is located in the App_Data/C1NWind.mdb.
  • DataBindings - for specifying the series bindings.
  • C1PieChartBinding.DataField - for binding X to the specified field name.
  • C1PieChartBinding.LabelField - for binding XType to the specified field name.

DataBindings is a collection which contains the C1PieChartBinding instances. C1PieChartBinding has another following properties.

  • DataMember - for specifying the name of the list of data if the data source contains more than one list.
  • HintField - for binding Hint content to the specified field name.
  • OffsetField - for binding offset to the specified field name.

If the HintField property is set, then moving the mouse to a series will show the hint value which has the same index with the series.

Documentation