Pre loader

How to change CursorModifier ToolTip value string format?

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

Answered
1
0

I am using SciChart WPF version 4. I have added the CursorModifier to my ModifierGroup. It seems to work okay except the series data values displayed by the ToolTip are apparently using a string format like “F2”. Is there a way to change the value text formatting so I can get more resolution on the displayed values?

I have gone though the documentation and examples but haven’t found how to change this property. I need something more like “F5”. Many times the data values being graphed are within a small range, but are have relatively large values. For example, all values may be around 12 Volts, but only differ by small millivolts. If only two decimal places are displayed, all values displayed using the ToolTip have the same value.

Thanks,
Dave

Version
Version 4
  • Ryan Woods
    I didn’t mean to add an answer. I meant to add a comment. I think that our questions are similar if not the same. Here is a link to my question: https://www.scichart.com/questions/question/text-format-on-cursor The answer seems odd but I think it has to do withe the semantics that scichart uses. Perhaps an axis is something different in their minds than what it is in my mind.
  • You must to post comments
Best Answer
0
1

Hi Ryan, Dave.

The AxisBase.CursorTextFormatting is the primary way to change text formatting of cursor axis labels and tooltips. Why? Because Series are registered on an Axis, and Axis is responsible for measuring and formatting.

You can also have full control over Tooltip labels by using the LabelProvider feature.

You can also template AxisLabels and Tooltips as specified in this answer.

Best regards,
Andrew

  • Dave Leach
    Andrew, By setting the X and Y axis CursorTextFormatting to “#0.00000”, it solved the problem for the CursorModifier ToolTip data point formatting, which was my primary need. Thanks for pointing out this property. However, I decided to set the ShowAxisLabels property to false because the axis labels always differed from the cursor tool tip values by some small fraction, which would be confusing to my users. I assume this is an artifact from the measurement of the mouse pointer location and then conversion to the nearest axis values. Is this correct? Thanks, Dave
  • Ryan Woods
    This is exactly what I was missing. I understand it now! Thank you!
  • Andrew Burnett-Thompson
    Dave – was not aware axis label values differed from tooltip values. Can you email a screenshot with CursorTextFormatting to repro to support ? Will get it logged as a bug.
  • Dave Leach
    Andrew, I discovered that the problem occurs if I have the CursorModifier properties configured with UseInterpolation = True. If I have it set to False, it works fine. I have attached the requested screen shot, cropped to just show the graph. Note that the actual data point values are X = 13 and Y = 0.00213. Since I can avoid this problem by setting the UseInterpolation property, I do not consider this a critical defect. However, you may want to consider mentioning this behavior in your example code and/or documentation. Thanks, Dave
  • Andrew Burnett-Thompson
    Thanks dave!
  • You must to post comments
0
0

See the attached image showing impact of having CursorModifier.UseInterpolation set to True.

Images
  • You must to post comments
Showing 2 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