How to view the last 10 DataPoints in a chart that's updating each second?
问题 I have this code: private void timer_Tick(object sender, EventArgs e) { timer.Stop(); for (int i = 0; i < TOTAL_SENSORS; i++) { DateTime d = DateTime.Now; devices[i].Value = float.Parse(serialPort.ReadLine()); if (chart1.Series[i].Points.Count > MAX_POINTS) { //see the most recent points } chart1.Series[i].Points.AddXY(d, devices[i].Value); } timer.Start(); } This part of my code is the timer's tick event where i draw a chart and i need to update it every tick.I keep adding points and when