public void AddPointsToChart(List <Point> points) { _activity = new List <Point>(points); _chart.Clear(); _activity.ForEach(p => _chart.AddPoint((int)p.X, (int)p.Y)); UpdateBoundsLabels(); }
public void AddPointsToChart(List <Point> points) { _activity = new List <Point>(points); _chart.Clear(); _activity.ForEach(p => _chart.AddPoint((int)p.X, (int)p.Y)); _chart.FrameMin = (int)_activity.Min(p => p.X); _chart.FrameMax = (int)_activity.Max(p => p.X); _chart.SetRange(_chart.FrameMin, _chart.FrameMax); UpdateBoundsLabels(); }