Real-time graph using Mschart
I am trying to plot a real time graph using Mschart control. I have an array Tot(). Each time Tot() gets new value the Mschart is plotted. My problem is instead of showing the graph, the Mschart control is just flickering. can anyone pl help me.
here is the code.
Private Sub Timer1_Timer()
ReDim Preserve Tot(cnt)
If (MouseOn = True) Then
Tot(cnt) = 10
Tot(cnt) = 0
.chartType = VtChChartType2dLine
.ShowLegend = True
.ChartData = Tot
cnt = cnt + 1
PS: MouseOn is just a boolean variable which is made true or false by some other even in my application.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL