TeeChart WPF Annotation Issues

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
n8soft
Newbie
Newbie
Posts: 5
Joined: Thu Apr 12, 2007 12:00 am

TeeChart WPF Annotation Issues

Post by n8soft » Mon Oct 13, 2008 3:45 pm

hi -
Evaling the WPF version.
1. Annotations with custom positions "drift" when scrolling, and moving mouse when X-hairs are eactive.

2. I want to attach the annotation to an axis. But it seems that the Axis position is not calculated immediately after it is created. Hence it is not positioned corretly until some refresh event occurs.

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

Post by Narcís » Tue Oct 14, 2008 7:15 am

Hi n8soft,

Please find below the answers to your questions:

1. This may be that you need to set annotation's position relative to a chart object, for example: series points, axes, title, legend, etc. You may also need to refresh annotation's position in the Zoomed and Scroll events.

2. Yes, to force the chart being internally repainted you need to make a Bitmap call, for example:

Code: Select all

Bitmap bmp = tChart1.Bitmap();
Hope this helps!
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

n8soft
Newbie
Newbie
Posts: 5
Joined: Thu Apr 12, 2007 12:00 am

Annotation diagonal drift

Post by n8soft » Wed Oct 15, 2008 1:08 pm

Actually, if you run the WPF demo Annotation Tool, and scroll the chart, you will see the same drift behaviour.

If you do this on the WinForm demo, the annotation with custom position does not drift, and remains in the correct position.

The drift is a diagonal top-left to bottom-right, and does not appear to vary.

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 Oct 15, 2008 1:28 pm

Hi n8soft,

Thanks for the information. Now I see which the exact problem is and I've added it (TF02013459) to the defect list to be fixed for next releases.
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

Post Reply