SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
As per the title I’ve got a RolloverModifier on my chart in order to utilise the snap-to-point facilities of that control. However, there is undesired behaviour when the dataseries contains points that have a Not-a-Number as a Y value as the line will still snap to the X position but the tooltip vanishes when it can’t deal with the Y value.
Could someone tell me how to either:
A/ Make the modifier jump to the next X position that isn’t a NaN
B/ Force the ToolTip to display some default text when the Y value cannot be evaluated
(or both if people are keen – I like to have options 🙂 )
All ideas are welcome
Unfortunately, it isn’t possible with the current implementation of RolloverModifier (neither option). With a little overriding, it is possible to hide the line at all where Y values are NaNs. You need to override the TryUpdateOverlays method and check whether the hit-test was successful inside. Then set DrawVerticalLine to “False” if it wasn’t and to “True” otherwise.
Another option could be implementation of a custom Rollover. There is the article on this topic in our Knowledgebase:
Please let us know if you need further assistance with this,
Please login first to submit.