Real-time Update Chart

Hi,

Is there any example for real-time update chart 2-D is OK.

The XAxis should be the real time with minorunit as 12 seconds and majorunit as 1 minute.

The beginnig point should be the current time when the application is started...As time goes on, the XAxis will also changes (Growing).

Well, I do not know how to make the start point of the XAxis to be current time and the following points are time in the future, say five minutes at first. Then, the range will grow and the past time should be reserved....Well, I can not solve this problem~~~

Can anyone help me




Answer this question

Real-time Update Chart

  • Kamen

    It depends on your level of expertise. If you know how to draw lines, you probably can. Tasks like this is one of the first thing taught in college about graphics, so it's not that complicated and even entry level developer should be able to do it (though it probably won't be as pretty as 3rd party control).



  • Phantisy

    For starters simply try connecting these points with strait lines. At 5 samples per second average human probably won't be able to notice if graph is smooth or not. And you do know what next point would be if you delay drawing one (or more) samples. Again, average human can’t react in 200 ms so it does not matter if it’s delayed or not.



  • dlevers

    Hi,
    Mooseworks Softwares is a company developed a chart components, a really good one, i used it my self...

    and it supports real time charting, all u need is to update the values and then refresh the graph on the run time, and it will display the new values.

    the Mooseworks Softwares website is:
    http://www.mooseworkssoftware.com/graph.htm


    Regards,



  • chaza

    But I still do not know how to plot the graph...

    Is there any code

    BTW, some one recommond "ZedGraph", anyone has tried it

    Thanks..



  • ianpender

    Well....

    Can we realize the function ourselves

    I can not afford this software~~~~

    Thanks anyway..



  • pjmvn

    Hi, Ilya Tumanov

    I am a newbie...

    So you mean I can draw the line myself

    There will be 300 data in one minute...I draw one point on the graph when I get one

    Then, I do not know how to connect these points smoothly because I do not know the function for it at first...

     

    Thanks!

     



  • elemr

    Well, I think I'm lost at what you mean...

    What is "Mooseworks Softwares" So you mean I need do nothing



  • Santino Lamberti

    Mooseworks Softwares have TrendGraph control which updates the chart in real time, u add value to the graph and it will imidiately updated. the older values get scrolled as new ones are added.
    do u want to impelement it urself


  • Real-time Update Chart