SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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!

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.

Answered
0
0

Hi There,

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

OR

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
/Stuart

  • You must to post comments
Best Answer
0
0

Hi Stuart,

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:
http://support.scichart.com/index.php?/Knowledgebase/Article/View/17235/32/custom-chartmodifiers—part-1—creating-a-custom-rollover-modifier

Please let us know if you need further assistance with this,

  • Stuart McCullough
    Hi Yuriy Thanks for that, custom route it is by the looks of it. /Stuart
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.