Pre loader

How can I handle Onclick event on Scichart surface?

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

Closed
1
0

I am working on Scichart Android application .I am using two Scichart surfaces on a single activity ,I want to handle click event on scichart surface so that,whenever I click on surface it will start a new activity which contains a single Scichart.

Version
2.5.0.2598
  • You must to post comments
0
0

Hi Hamza Kiani,

Well the preferred way to do this is to use ChartModifier API to handle click and create custom modifier:

class CustomModifier extends GestureModifierBase {
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
    // do something
    return true;
}

}

Then add for desired chart:

  surface.getChartModifiers().add(new CustomModifier());

Is this suitable for your needs?

Best regards,
Yura

  • You must to post comments
Showing 1 result

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies