code: function (newMin, newMax) {
  
  		// Prevent pinch zooming out of range. Check for defined is for #1946.
  		if (!this.allowZoomOutside) {
  			if (defined(this.dataMin) && newMin <= this.dataMin) {
  				newMin = UNDEFINED;
  			}
  			if (defined(this.dataMax) && newMax >= this.dataMax) {
  				newMax = UNDEFINED;
  			}
  		}
  
  		// In full view, displaying the reset zoom button is not required
  		this.displayBtn = newMin !== UNDEFINED || newMax !== UNDEFINED;
  		
  		// Do it
  		this.setExtremes(
  			newMin,
  			newMax,
  			false, 
  			UNDEFINED, 
  			{ trigger: 'zoom' }
  		);
  		return true;
  	}
docs: Overridable method for zooming chart. Pulled out in a separate method to allow overriding
  in stock charts.