Pre loader

Custom tooltip marker

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

0
0

Hello,
I would like to replace the standard “X” tooltip marker with a custom drawable. This article suggests that it is possible to customize the marker, but I wasn’t able to find any examples how to do it. Could you help me with that?
Regards,
Anna

Version
2.0.0.1884
  • You must to post comments
0
0

Hello Anna,

You might notice, that TooltipModifier has few constructors and one of them takes DrawableBehavior as an argument, which is used to draw marker. Default one is CrossDrawableBehavior, but you can create the custom one, all you need to do is to inherit from DrawableBehavior and override onDrawOverlay() method and draw your overlay on the passed in canvas. That’s it. Now use custom drawable behavior when creating your TooltipModifier.

Hope that helps.

Best Regards
Nazar R.

  • You must to post comments
Showing 1 result
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