Drawing dots lines with a lot of points

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
nowy
Newbie
Newbie
Posts: 5
Joined: Wed Jan 26, 2005 5:00 am

Drawing dots lines with a lot of points

Post by nowy » Mon Mar 05, 2007 11:20 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 05, 2007 11:42 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nowy
Newbie
Newbie
Posts: 5
Joined: Wed Jan 26, 2005 5:00 am

Post by nowy » Wed Mar 07, 2007 11:20 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 07, 2007 2:21 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nowy
Newbie
Newbie
Posts: 5
Joined: Wed Jan 26, 2005 5:00 am

Post by nowy » Wed Mar 07, 2007 2:32 pm

Thank you,
I'll try it

Post Reply