Pre loader

[IOS ] How to create a custom a tooltip in UsingRolloverModifier

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

I want to develop a rollover in my IOS application, like the example of Using RolloverModifier. However, the axis label & tooltip display of rollover in this example is static, I want to customize a the the label & tooltip that I want, .xib file or coding to develop also fine.

Can anyone help or give suggestions to my problems? Thanks.

Version
v2.5.0.2523
  • You must to post comments
0
0

Hello.
In order to have a custom view you’ll need to perform the following steps:

  1. Create a custom view (should have SCITooltipDataView as a base class).
  2. Create a custom SCISeriesInfo, override -(SCITooltipDataView *)createDataSeriesView method, to return the object of class from previous step.
  3. Subclass corresponding renderable series and override -(SCISeriesInfo *)toSeriesInfo method to return an instance for step 2.

That’s it, rollover modifier will use SCISeriesInfo object for your renderable series with a custom tooltip view.
We have an example for it in our sandbox, you’re welcome to check

  • Gumbo F
    In step 2, if I want to display another data (PriceItem) instead of SeriesInfo in tooltip, which part I need to modify? Or what variable and method are required to keep it from SeriesInfo?
  • 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