Page 1 of 1

Drawing dots lines with a lot of points

Posted: Mon Mar 05, 2007 11:20 am
by 9340757
Hallo,

I have the same problem as reported here:
http://www.teechart.net/support/viewtop ... light=dots

If a dotted series contains a lot of points it is drawn as a continues line.
Is there any workaround for it?
I'm using Delphi7 and TeeChart Pro 7.04

Posted: Mon Mar 05, 2007 11:42 am
by narcis
Hello nowy,

No, there's no workaround for that issue that I can think of. The same as in the other thread would apply here.

BTW: Please notice that latest version available at the client area is v7.07.

Posted: Wed Mar 07, 2007 11:20 am
by 9340757
Hi,

Thank you for your fast answer.

I think a solution could be the following drawing algorithm:

1. draw one point A
2. ignore for drawing all points for them the distance to the point A is less then let say 3 pixels
3. continue drawing with the next point

I think it could also improve the performance if we calculate all visible points in advance then only they will be painted.

Do you think is it possible to include such "auto-reduction" drawing feature in the TeeChart?

Posted: Wed Mar 07, 2007 2:21 pm
by narcis
Hi nowy,

To achieve that we already have DownSampling function. You'll find an example at the All Features\Welcome!\Functions\Extended\Reducing number of points example in the features demo. You'll find the demo at TeeChart's program group.

Posted: Wed Mar 07, 2007 2:32 pm
by 9340757
Thank you,
I'll try it