code: function () {
  
              var pointer = this,
                container = pointer.chart.container;
  
              container.onmousedown = function (e) {
                  pointer.onContainerMouseDown(e);
              };
              container.onmousemove = function (e) {
                  pointer.onContainerMouseMove(e);
              };
              container.onclick = function (e) {
                  pointer.onContainerClick(e);
              };
              addEvent(container, 'mouseleave', pointer.onContainerMouseLeave);
              if (chartCount === 1) {
                  addEvent(doc, 'mouseup', pointer.onDocumentMouseUp);
              }
              if (hasTouch) {
                  container.ontouchstart = function (e) {
                      pointer.onContainerTouchStart(e);
                  };
                  container.ontouchmove = function (e) {
                      pointer.onContainerTouchMove(e);
                  };
                  if (chartCount === 1) {
                      addEvent(doc, 'touchend', pointer.onDocumentTouchEnd);
                  }
              }
  
          }
docs: Set the JS DOM events on the container and document. This method should contain
  a one-to-one assignment between methods and their handlers. Any advanced logic should
  be moved to the handler reflecting the event's name.