Pre loader

How to show only Pointmarker?

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

Answered
0
0

Hi,

I’m using RolloverModifier and i want to show only point marker. I don’t want to show tooltip or any info on series. Is it possible?

Tnx.

Version
3.0
  • You must to post comments
Best Answer
1
0

Hi Dunya,

Well this would require some customization of rollover tooltip. Please take a look on our custom RolloverModifier example. You will need to do the same thing except in custom SeriesTooltip you’ll need to override placeInto() and removeFrom() and do nothing there. This will allow to not show tooltips on screen and still draw rollover point markers:

 private static class FirstCustomSeriesInfoProvider extends DefaultXySeriesInfoProvider {
    @Override
    protected ISeriesTooltip getSeriesTooltipInternal(Context context, XySeriesInfo<?> seriesInfo, Class<?> modifierType) {
        if (modifierType == RolloverModifier.class) {
            return new FirstCustomXySeriesTooltip(context, seriesInfo);
        } else {
            return super.getSeriesTooltipInternal(context, seriesInfo, modifierType);
        }
    }

    private static class FirstCustomXySeriesTooltip extends XySeriesTooltip {
        public FirstCustomXySeriesTooltip(Context context, XySeriesInfo seriesInfo) {
            super(context, seriesInfo);
        }


        @Override
        public void placeInto(IViewContainer viewContainer) {
            // do nothing here
        }

        @Override
        public void removeFrom(IViewContainer viewContainer) {
            // do nothing here
        }
    }
}

Hope this will help you!

Best regards,
Yura

  • Dunya Biralem
    Yes, it worked. I extend from DefaultOhlcSeriesInfoProvider for Candlestick chart. Thanks!
  • You must to post comments
0
0

Hi Dunya,

Have you tried to use setShowTooltip() method like in this example?

 rolloverModifier.setShowTooltip(false);

Best regards,
Yura

  • You must to post comments
0
0

Hi @Yura;

Yes i tried, but if i set show tooltips to false tooltips and also point markers hiding.
Maybe I couldn’t explain exactly what I wanted… I want only point markers to appear when I touch down the screen, not tooltips.

  • You must to post comments
Showing 3 results
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