Sad Sun

Sad Sun

  • NA
  • 5
  • 4.5k

How to create charts using run time data in VS2008?

Apr 2 2013 9:58 AM


I am supposed to create a chart using run-time data but I have no idea how to achieve that.

I am working with Microsoft Visual Studio 2008 (.NET framework 3.5 ) with the Microsoft Chart-Addons.

For the moment, I know how to create charts with existing data, for example with the help of an array,

 
            double[] array = { 0, 0, 0, 2.8, 4.4, 6.5, 8.3, 3.6, 5.6, 7.3, 9.2, 1.0 };
            
            Chart1.Series["Series1"].Points.DataBindY(new IEnumerable<double>[] { array });

Please help !!


Answers (2)