Pre loader

LineAnnotation returns incorrect X1 value

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi,

I am having a number of LineAnnotations displayed on the graph and their references stored in an array. I’d drag the annotations around the graph and try to get their new position by calling tab[0].X1 for example but the value returned isn’t the actual X1 of the given annotation. I’d get 1.75 for example for the actual X1 value of 265 shown when debugging. Tried with
foreach (LineAnnotation line in mySciChart.Annotations) { var value = (double)(line.X1); } but same prob, What am I doing wrong?

Version
4.1.2.8699
  • Yuriy Zadereckiy
    Hi Kilosa, I’m not sure why would this happen. There should be a noticeable difference between 1.75 and 265. Are the annotations placed correctly?
  • Kilosa Magali
    Yes, all annotations are placed correctly . Am also surprised, debugging this line var value = (double)(line.X1), I expand the variable ‘line’ and see the value of X1 different from the one affected to the variable value.
  • Andrew Burnett-Thompson
    Hi Kilosa. If you can send us code to reproduce, we will investigate. Otherwise, marking this as ‘cannot reproduce’. Best regards, Andrew
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies