MindFusion WinForms Programmer's Guide
BarChart.DataFields Property
See Also
 





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

 Syntax

C#  Copy Code

public string DataFields { get; set; }

Visual Basic  Copy Code

Public Property DataFields As String

 Property Value

A string that specifies the name(s) of the data field(s).

 Remarks

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 ("").

 See Also

BarChart Members
BarChart Class
MindFusion.Charting.WinForms Namespace
Retrieving Chart Data from a Database