SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Closed
0
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