Gets or sets the field in the data source when the data for the X - chart values is derived from a database.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public string XDataFields { get; set; } |
Visual Basic
![]() |
---|
Public Property XDataFields As String |
A string that specifies the name of the data source field.
The property enables you to bind the data used for calculating the X-coordinates of line chart points to numerical columns 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 given 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 XDataFields property of the line control.
If you want to add more than one table field as data for the chart, you should separate the names with commas.
The XDataFields property, when populated with data, is the same as the XData property.
Default value for the XDataFields property is an empty string ("").