I have a simple chart that prints values read by a photoresistor. Also the chart prints 2 thresholds. My problem is that when more than 300 or 400 points are printed in the chart, it becomes quite unreadable (extraordinarily difficult to read or comprehend all the values printed).
Look at this:
I thought that using an incremental counter and doing this:
if (i > 300) {
chart1.Invoke(new Action(() => {chart1.Series[0].Points.Clear(); }));
chart1.Invoke(new Action(() => { chart1.Series[1].Points.Clear(); }));
chart1.Invoke(new Action(() => { chart1.Series[2].Points.Clear(); }));
i = 0;
}
The problem is solved as my chart becomes empty and readable again, but I don't want to clear and lose all my previous data.
What alternative solutions can I try so my data won't be deleted, but keeping my chart readable?