KyleBerne Posted October 18, 2007 Report Share Posted October 18, 2007 Hi all, I have a preformance problem with a chart I am trying to create that holds large amount of points on it (around 5000). The chart takes hugh amount of time to render. Is there any way to improve the performace? Thanks, Kyle Quote Link to comment Share on other sites More sharing options...
Frank Posted October 18, 2007 Report Share Posted October 18, 2007 5000 is not that many points. - Verify what's taking the time, is is passing the data to the chart or painting the chart. This is easy to determine simple force a redraw of the chart (by minimizing and restoring the form for example) and see whether this is slow or not. If this is not slow then the time is beign spent setting up the chart and you need to review that code. - If the time is indeed spent painting the chart. How much is a "huge time". In a decent computer, drawing a default 2D line chart takes way under a second to draw. Obviously this performance starts degrading if you start making the chart more "fancy". - What type of chart are you creating (line, bar, etc) is it 2D or 3D? Quote Link to comment Share on other sites More sharing options...
KyleBerne Posted October 21, 2007 Author Report Share Posted October 21, 2007 Doesnt seem like the painting of the chart... resizing the window takes very little time, I will check the code itself. Thanks Quote Link to comment Share on other sites More sharing options...
KyleBerne Posted October 22, 2007 Author Report Share Posted October 22, 2007 OK, checked, then re-checked, the entire code thing takes about 30 seconds, from there on it takes up to 20 min until I actually see the chart in the GUI... during this time the application does absolutly nothing. I am getting a little frastrated, there is no obvious reason for it to stall. when the chart finaly displayes, it can be easily min./max. so maybe its not the rendering of the chart but somthing else. is there any way to insert the points to the chart in real-time? meaning that each point will be displayed upon insertion? any othe comments/sugestion will be greatly appriciated. Quote Link to comment Share on other sites More sharing options...
KyleBerne Posted November 5, 2007 Author Report Share Posted November 5, 2007 ok, found the problem - it was my mistke when using the opendata method - created too many points... 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.