Page 1 of 1

How to draw on top of a chart

Posted: Fri May 06, 2011 9:37 am
by 15657630
Hi.

I'm using TeeChart in a Windows Forms application. I have a chart with a very dense grid. This makes the rendering of the chart very slow. This wouldn't matter much if I only needed to render the chart once. But I suspect that every time the user scrolls the chart or draws something on top of it using tools such as DrawLine or RectangleTool, the chart gets re-rendered. So the user experiences significant lag when trying to interact with the chart.

Is there any way to avoid the redrawing the whole chart and just to draw the tools on top of the existing chart?

-Joonas

Re: How to draw on top of a chart

Posted: Fri May 06, 2011 11:49 am
by 10050769
Joonas_v

Could you send us a simple project so we can reproduce exactly your problem here and try to find a good solution for you?

Thanks,

Re: How to draw on top of a chart

Posted: Fri May 06, 2011 1:06 pm
by 15657630
Here's an example:
http://dl.dropbox.com/u/3632362/TeeChartTest.zip

If you try to scroll with the right mouse button or draw a DrawLine with the left, they work really slow.

-Joonas

Re: How to draw on top of a chart

Posted: Mon May 09, 2011 12:03 pm
by 10050769
Hello Joonas,

Thank you for your project. I can reproduce it here and I have added in bug report list with number [TF02015562]. We will try to fix it to next maintenance releases of TeeChart.Net

Thanks,

Re: How to draw on top of a chart

Posted: Mon Jun 27, 2011 1:21 pm
by 15658583
Do you have any estimates when the next release is going to be out and this issue fixed?
More specifically, we would like to know if it is going to be more or less than one month from now.

Best,
Tapani
Commit; Oy

Re: How to draw on top of a chart

Posted: Thu Jun 30, 2011 2:47 pm
by 10050769
Hello Commit,

I inform that bug with number (TF02015562) is not a bug. we have done many test on several machines and this behavior is not reproducible in all. It depends of the video card and the number of pixels as you want draw, so the drawline tool repaints every time it is moved and the bigger you make the chart, the more pixels have to be drawn and the slower it is.

Thanks,