Chart for WPF and Silverlight / Chart Features / Data Binding / Data Context Binding / Data Context as Array of Double
In This Topic
Data Context as Array of Double
In This Topic

The following code shows how to use the data context as an array of double:

C#
Copy Code
c1Chart1.Reset(true);
c1Chart1.DataContext = new double[] { 1, 2, 3, 4, 5 };
c1Chart1.ChartType = ChartType.Column;

 

See Also