Gets or sets the field of the data source used to populate the XLabels array.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public string XLabelsFields { get; set; } |
Visual Basic
![]() |
---|
Public Property XLabelsFields As String |
A string that specifies the name of the data source field used as X-labels.
The property enables you to bind the labels drawn at the X-axis 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 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 XLabelsFields property of the chart control.
The labels specified with the XLabelsFields are drawn only if the LabelType field of the XAxisSettings property is set to AxisLabelType.CustomText.
The XLabelsFields property, when populated with data, is the same as the XLabels property.
Default value for the XLabelsFields property is an empty string ("").