Page 1 of 1

Bad position for line series labels

Posted: Thu Jun 30, 2011 5:26 pm
by 9644416
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.

Re: Bad position for line series labels

Posted: Fri Jul 01, 2011 10:14 am
by narcis
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.

Re: Bad position for line series labels

Posted: Fri Jul 01, 2011 8:30 pm
by 9644416
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.

Re: Bad position for line series labels

Posted: Mon Jul 04, 2011 7:46 am
by 10050769
Hello tenaris,

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

Thanks,