Bhargavi Posted August 20, 2008 Report Share Posted August 20, 2008 Hi, I'm trying to create a line chart with 5000 data points. Assigning data to the chart control is taking 10 sec only. But while refreshing & displaying the chart in the web browser it is taking more time. For assigning data to the chart control i tried 2 ways. One is Chart.Data & other is Chart.DataSourceSettings.DataSource How can i reduce this time. Am i missing anything here. Quote Link to comment Share on other sites More sharing options...
Frank Posted August 20, 2008 Report Share Posted August 20, 2008 If the time is being spent painting the chart, the way you pass the data becomes irrelevant. What you need to look at is the chart settings. Default settings are not designed for charts with such a large number of points. Things to look at: 1) Marker Shape: The default marker shape (marble) is very slow. 2) 2D/3D: 3D Charts are much slower than 2D charts 3) Gradients 4) Per-Point attributes 5) Gallery Type Quote Link to comment Share on other sites More sharing options...
Bhargavi Posted August 21, 2008 Author Report Share Posted August 21, 2008 Hi Frank, Thanks for your valuable suggestions. If the make Marker Shape as None then it worked for me. I'm trying to zoom my chart. I used CFXChart.Zoom = true; option but not able to zoom in/out. Any suggestion on this. Quote Link to comment Share on other sites More sharing options...
Bhargavi Posted August 21, 2008 Author Report Share Posted August 21, 2008 Hi Frank, After implementing Marker shape as None, time for generating the chart has been reduced from 3min to 30sec. Is there any we can still reduce this time. 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.