MS Chart C# sample code

Posted on 2009-12-17
Last Modified: 2012-05-08

I am coding a C#.NET program. I have an area chart on a win form but do not know how to add data to it on the fly. Can anybody provide me with some sample codes? Thanks.
Question by:sdc248
    LVL 3

    Expert Comment

    do you use MS Chart in VS 2008 or any other third parties?

    Author Comment

    MS Chart add-on for VS 2008, yes.
    LVL 3

    Expert Comment

    LVL 3

    Accepted Solution

    I think the best place for is here:Samples Environment for Microsoft Chart Controls. you can find code for and Windows Form:

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now