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.
Bad position for line series labels
Bad position for line series labels
- Attachments
-
- Pictures.zip
- Pics
- (66.75 KiB) Downloaded 476 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Bad position for line series labels
Hi tenaris,
Thanks in advance.
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?Thre is a simple way to fix this problem?
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 |
Instructions - How to post in this forum |
Re: Bad position for line series labels
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.
Thanks,
best regards.
Re: Bad position for line series labels
Hello tenaris,
I am glad that you can find a solution of your problem .
Thanks,
I am glad that you can find a solution of your problem .
Thanks,