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
- Dave Leach asked 8 years ago
- last edited 8 years ago
-
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 login to post comments
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
- Andrew Burnett-Thompson answered 8 years ago
- last edited 5 years ago
-
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
-
This is exactly what I was missing. I understand it now! Thank you!
-
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.
-
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
-
Thanks dave!
- You must login to post comments
See the attached image showing impact of having CursorModifier.UseInterpolation set to True.
- Dave Leach answered 8 years ago
- You must login to post comments
Please login first to submit.