Jump to content
Software FX Community

speed of charting


djdjoko

Recommended Posts

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)

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...