code: public boolean handleTouchEvent(MotionEvent event, ViewParent viewParent,
                                      ContainerScrollType containerScrollType) {
          this.viewParent = viewParent;
          this.containerScrollType = containerScrollType;
  
          return handleTouchEvent(event);
      }
docs: Handle chart touch event(gestures, clicks). Return true if gesture was handled and chart needs to be
  invalidated.
  If viewParent and containerScrollType are not null chart can be scrolled and scaled within horizontal or
  vertical
  scroll container like ViewPager.