MSDN charts changing point values realtime?

后端 未结 4 495
感动是毒
感动是毒 2020-12-18 08:08

I want to use MSDN charts to represent realtime data i\'m getting from a telnet application. For testing purpose i have added a button to alter the chart manually. I manuall

4条回答
  •  情话喂你
    2020-12-18 08:37

    I do this:

        public static void Refresh(this Chart chart) // update changed data
        {
            chart.Series[0].Points.AddXY(1, 1);
            chart.Update();
            chart.Series[0].Points.RemoveAt(chart.Series[0].Points.Count-1);
        }
    

    chart1.Refresh();

提交回复
热议问题