Gets or sets the field in the data source when the data for the Y - chart values is derived from a database.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public string YDataFields { get; set; } |
Visual Basic
![]() |
---|
Public Property YDataFields 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 Y-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 table cells appear as items in the drop down combo box in the YDataFields property of the line control.
If you want to add more than one table cell as data for the chart, you should separate the names with commas.
The YDataFields property, when populated with data, is the same as the YData property.
Default value for the YDataFields property is an empty string ("").