Drag mark position does not update when zooming out

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Drag mark position does not update when zooming out

Post by Christo Zietsman » Fri Oct 03, 2008 1:29 pm

I'm using:
TeeChart.NET version 3
Build 3.5.3188.18562

In the Feature demo "Welcome !\Tools\Drag Marks".
1. Zoom into a mark.
2. Move the mark.
3. Zoom out.

The mark's position did not update, but stays where I moved it to.

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

Post by Narcís » Fri Oct 03, 2008 1:39 pm

Hi Christo.

This is because marks are set to an absolute position. For this to work they should be set to a position relative to any chart object (series points, axes, title, legend, etc.).

An alternative is using Annotation tools as Edu suggested here.

You could also set custom marks position as shown on this thread and refresh their position on Zoom and Scroll events as in Edu's example.

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

Post Reply