I am updating a chart from MSChart every 0.5 sec.
The problem is when I do that the chart is flickering.
Does anybody now how I can stop this?
Thanks
Printable View
I am updating a chart from MSChart every 0.5 sec.
The problem is when I do that the chart is flickering.
Does anybody now how I can stop this?
Thanks
before it actually updates the chart check to see if the data has changed from the last time it checked. if so, update it...if not don't do anything. that will get rid of the flicker
I now, but I have to update every 0.5 sec because
de data changes every time.
hmm, then i would imagine you have that checked within a timer which is set to an interval of 500? the only other thing i can think of is to not refresh the chart every .5 seconds. in other words refresh the data every .5 seconds but update the chart only every 5 seconds or so.
the problem of the flickering in your case seems to be caused because you are refreshing it so frequently that it has trouble redrawing the chart in the alloted time. so you have to do something to slow it down to give it time to draw it before it has to draw it over again. if you must have the data refreshed every .5 seconds then the only way i can think of is what i stated in the beginning of this message..slow down the number of times it has to redraw the chart but still keep the data refreshing every .5 seconds.
hope this helps
I also have this problem. So,can we work together to fix it out.
I think it isn't possible to get rid of the flicker.
I am trying to make my own ActiveX Component(only for X-Y).
Is the flickering because you start to change it before it has compleated the last update ?
If so, the only way to get rid of it is to wait until it finished last update.
/AKA
It won't help.
First i refreshed my chart every second, but the flickering was very bad, so i changed the refresh time
to 5 sec and it's still flickering.