Gets or sets the database field(s), which values are used as data for the bar chart.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public string DataFields { get; set; } |
Visual Basic
![]() |
---|
Public Property DataFields As String |
A string that specifies the name(s) of the data field(s).
The property enables you to bind the data used for calculating height of bars in bar charts to a numerical 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 DataFields property of the bar control. Use the comma as a separator in case you need to draw groups/clusters of bars and more than one database column must be selected.
The DataFields property, when populated with data, is the same as the Data property.
Default value for the DataFields property is an empty string ("").