dotnetCHARTING Send comments on this topic.
DataFields Property
See Also  Example
dotnetCHARTING Namespace > Series Class : DataFields Property


Gets or sets a value that specifies the 'database column' to 'chart data' relationship.

Syntax

Visual Basic (Declaration) 
Public Property DataFields As String
Visual Basic (Usage)Copy Code
Dim instance As Series
Dim value As String
 
instance.DataFields = value
 
value = instance.DataFields
C# 
public string DataFields {get; set;}

Example

C#Copy Code
Chart.Series.DataFields="xAxis=field1,yAxis=field2,splitby=field3"; 
    
Visual BasicCopy Code
Chart.Series.DataFields="xAxis=field1,yAxis=field2,splitby=field3"

Remarks

When programmatically setting a datatable or dataset, certain columns are expected with specific names. This property allows you to control the expected names.

See Getting Started > Tutorials > Data Fields for more info.

See Also