Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 685063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:53:04+00:00 2026-05-14T01:53:04+00:00

I have created some simple charts (of type FastLine) with MSChart and update them

  • 0

I have created some simple charts (of type FastLine) with MSChart and update them with live data, like below:

MSCharts Level Chart

To do so, I bind an observable collection of a custom type to the chart like so:

                // set chart data source
            this._Chart.DataSource = value; //is of type ObservableCollection<SpectrumLevels>

            //define x and y value members for each series
            this._Chart.Series[0].XValueMember = "Index";
            this._Chart.Series[1].XValueMember = "Index";
            this._Chart.Series[0].YValueMembers = "Channel0Level";
            this._Chart.Series[1].YValueMembers = "Channel1Level";

            // bind data to chart
            this._Chart.DataBind(); //lasts 1.5 seconds for 8000 points per series

At each refresh, the dataset completely changes, it is not a scrolling update!

With a profiler I have found that the DataBind() call takes about 1.5 seconds. The other calls are negligible.

How can I make this faster?

  • Should I use another type than ObservableCollection? An array probably?
  • Should I use another form of data binding?
  • Is there some tweak for the MSChart that I may have missed?
  • Should I use a sparsed set of date, having one value per pixel only?
  • Have I simply reached the performance limit of MSCharts?

From the type of the application to keep it “fluent”, we should have multiple refreshes per second.

Thanks for any hints!

EDIT: Solution as proposed by leppie:

                this._Chart.Series[0].Points.Clear();
            foreach (var item in value) //iterates over the list of custom objects
            {
                    this._Chart.Series[0].Points.Add(new DataPoint
                    {
                        XValue = item.Index,
                        YValues = new double[] { item.Channel0Level.Value }
                    });

            }

This now works more than twice as fast!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:53:04+00:00Added an answer on May 14, 2026 at 1:53 am

    Use the other Bind methods, they are very fast.

    I update about 15 series over 3 areas, with 300 points in every series, every second, and no real slow down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created some documents and managed to make some simple queries but I
I need to create some simple effects for the layers which I have created
I have created a simple JQuery script with hovering effect on some links. The
I am new to Repository concept and get some questions. I have created simple
I have created a simple program that i want to replace some chars with
I am pulling my hair out. I have created some simple functions that generate
I have created a custom jQuery plugin that does some simple image resizing for
I have created simple web service for my website that generates some json based
I am using jsAnim for some simple animations . http://jsanim.com/ I have created a
I have created some simple app in Java, and 'deployed' it using Java Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.