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