Skip to content

How to create charts using run time data in VS2008?

Sad Sun

Asked Apr 2, 2013, 5:58 AM EDT2 answers
Share
LinkedInX
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 !!

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    What is Microsoft Chart Addon? Is this a third party control? Is this ASP.NET, WPF or Windows Forms? Each of this has a different way to create charts.
    0
  • 0
    Microsoft Chart Add on is a third party service. I had it installed.

    I am working on Windows Forms.

    I have two variables, bandwidth and data , both of type int.

    I perform a certain function and then these values are in bandwidth and data.
    But if I include them as variables in the chart, both these values are taken as 0 !

    This is the problem I am facing.
    0