MindFusion WinForms Programmer's Guide
AxesChart.YLabelsFields Property
See Also
 





Gets or sets the field of the data source used to populate the YLabels array.

Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms

 Syntax

C#  Copy Code

public string YLabelsFields { get; set; }

Visual Basic  Copy Code

Public Property YLabelsFields As String

 Property Value

A string that specifies the name of the data source field used as Y labels.

 Remarks

The property enables you to bind the data used for drawing custom text as Y - labels for line charts to columns in a database, which contain text. 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 YLabelsFields property of the chart control.

If you want to add more than one table field as labels for the chart you should separate the names with commas.

The YLabelsFields property, when populated with data, is the same as the YLabels property.

Default value for the YLabelsFields property is an empty string ("").

 See Also

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