SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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-cursorThe 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 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
    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
    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.