how to accelebrate chart when have many series?
-
Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?
-
Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?
Yeah. Don't fill the chart with 10,000 points. Reduce the dataset down to what's important and the redraw will speed up dramatically. If your graph area is only 300 pixels wide, why are you stuffing in 3 times as many points as it can show?
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
Yeah. Don't fill the chart with 10,000 points. Reduce the dataset down to what's important and the redraw will speed up dramatically. If your graph area is only 300 pixels wide, why are you stuffing in 3 times as many points as it can show?
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave KreskowiakYes,you are right,thank you. I didnot care of the pixels wide, because i need pricision and smooth curve, so i use 1000 points. have any other solution to solve it? because if i use 300 points, but maybe i need plot 30 series in chartarea, how to solve it greatly ?
-
Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?
Which of the hundreds of different chart controls / libraries are you using? And, as Dave said, a chart with 10,000 points is never going to perform well.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Which of the hundreds of different chart controls / libraries are you using? And, as Dave said, a chart with 10,000 points is never going to perform well.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
As Dave and and Richard said, there are quite a few libraries out there, and adding too many points is probably not a good idea. However, it may be that the library is optimized for this. Have you checked the lib's documentation? Best, John
-- LogWizard Meet the Log Viewer that makes monitoring log files a joy!
-
As Dave and and Richard said, there are quite a few libraries out there, and adding too many points is probably not a good idea. However, it may be that the library is optimized for this. Have you checked the lib's documentation? Best, John
-- LogWizard Meet the Log Viewer that makes monitoring log files a joy!
Why are you replying to me instead of the OP? :confused:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Why are you replying to me instead of the OP? :confused:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Sorry, it was my mistake.
-- LogWizard Meet the Log Viewer that makes monitoring log files a joy!
-
Yes,you are right,thank you. I didnot care of the pixels wide, because i need pricision and smooth curve, so i use 1000 points. have any other solution to solve it? because if i use 300 points, but maybe i need plot 30 series in chartarea, how to solve it greatly ?
Ummm, perhaps you didn't hear me... The ONLY way to speed up the drawing of the chart, using any off-the-shelf charting library, is to reduce the number of points. Now, if you tried to roll-your-own charting library, you could put in some optimizations specific to your requirements to speed things up a bit. No matter what you do the BIGGEST speed boost is to not draw so many points.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
Why are you replying to me instead of the OP? :confused:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
You might not know what you said.
This space for rent
-
Ummm, perhaps you didn't hear me... The ONLY way to speed up the drawing of the chart, using any off-the-shelf charting library, is to reduce the number of points. Now, if you tried to roll-your-own charting library, you could put in some optimizations specific to your requirements to speed things up a bit. No matter what you do the BIGGEST speed boost is to not draw so many points.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak