Bad position for line series labels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tenaris
Newbie
Newbie
Posts: 39
Joined: Fri Mar 02, 2007 12:00 am

Bad position for line series labels

Post by tenaris » Thu Jun 30, 2011 5:26 pm

Hi, we have a project in .net WPF with TChart WPF. We're trying to put labels on each series, but shifting and zooming into the graph, the labels are not positioned correctly. The value of each label is the title of the series, used to set marks with MarksStyles.SeriesTitle.

There are 3 pictures. The firts, is ok, when the window is loaded. The second, after a shift (note the incorrect positioning of labels). The third, after a zoom, the labels completely disappear.

I've tried setting custom mark position and using annotations also, but in both cases the positions were wrong. Thre is a simple way to fix this problem?

Thanks in advance.
Attachments
Pictures.zip
Pics
(66.75 KiB) Downloaded 480 times

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

Re: Bad position for line series labels

Post by Narcís » Fri Jul 01, 2011 10:14 am

Hi tenaris,
Thre is a simple way to fix this problem?
Probably there's but to be able to give an accurate reply we need to see how this chart is created. Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
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

tenaris
Newbie
Newbie
Posts: 39
Joined: Fri Mar 02, 2007 12:00 am

Re: Bad position for line series labels

Post by tenaris » Fri Jul 01, 2011 8:30 pm

Thanks Narcís for your reply. We resolved this issue by fixing our code. The bug was while trying to get close the marks with the series, using the GetSeriesMark event and setting custom position to true. Marks positions now are correctly placed and zoom is working properly.

Thanks,
best regards.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Bad position for line series labels

Post by Sandra » Mon Jul 04, 2011 7:46 am

Hello tenaris,

I am glad that you can find a solution of your problem :).

Thanks,

Post Reply