djdjoko Posted October 9, 2008 Report Share Posted October 9, 2008 Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> I am currently evaluating the ChartFX for winforms control. The application I work on requires quite frequently redraw of the graphs. I have created a sample application that generates 100 random graphs and plots them on the screen. It seems to do it very slowly as it needs almost 20 seconds to update 100 simulated graphs of 5 series with each having 100 points. Any ideas if the speed can be increased since this is definitely too slow. The code I am using is: Public Function Simulate() as TimeSpan Dim i As Integer, j As Integer, k As Long, n As DateTime, numLines as Integer, numPoints as integer, numSimulations as Integer numLines = 5: numPoints = 100: numSimulations = 100 ChartFX1.Data.Series = numLines ChartFX1.Data.Points = numPoints n = Now() For k = 0 To numSimulations Dim y(numLines - 1)() As Double, x() As Double For i = 0 To numLines - 1 ReDim y(i)(numPoints - 1) Next ReDim x(numPoints - 1) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.