code: function () {
  
              var chart = this.chart,
                maxTicks = chart.maxTicks || {},
                tickPositions = this.tickPositions,
                key = this._maxTicksKey = [this.coll, this.pos, this.len].join('-');
  
              if (!this.isLinked && !this.isDatetimeAxis && tickPositions && tickPositions.length > (maxTicks[key] || 0) && this.options.alignTicks !== false) {
                  maxTicks[key] = tickPositions.length;
              }
              chart.maxTicks = maxTicks;
          }
docs: Set the max ticks of either the x and y axis collection