I am currently creating an application that displays streaming data. I can get and add data points to the chart only in order, but after adding each point, the chart zooms to automatically include all data points (i.e., the points come together as more are added). How to disable this?
Ideally, I would like the graph to simply scroll along the x axis, rather than setting the scale every time a point was added. What is the best way to do this?
Here is the code that I use to add a data point when data arrives at the serial port:
chart1.Series["Series1"].Points.AddY(parsed);
The chart is only the default fast line chart. Here are screenshots of a graph that displays data over time. As you can see, it simply compresses the graph over time, and not just leaves the scale alone and scrolls to the right.


source
share