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; |