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

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

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

 

See Also