Page 1 of 1

TeeChart WPF Annotation Issues

Posted: Mon Oct 13, 2008 3:45 pm
by 9644809
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.

Posted: Tue Oct 14, 2008 7:15 am
by narcis
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!

Annotation diagonal drift

Posted: Wed Oct 15, 2008 1:08 pm
by 9644809
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.

Posted: Wed Oct 15, 2008 1:28 pm
by narcis
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.