Gets or sets the database field, which values are used as data for the pie.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public string DataField { get; set; } |
Visual Basic
![]() |
---|
Public Property DataField As String |
The string that specifies the name of the database field.
The property enables you to bind the data for the pie chart to a field in a database. The data source object is specified with the DataSource property. If it is of type DataSet you can use the DataMember property to specify a particular table as source for the chart data. In this case the fields of the table appear as items in the drop down combo box in the DataField property of the pie control.
The DataField property, when populated with data, is the same as the Data property.
Default value for the DataField property is an empty string ("").