docs: function () {
              if (!this.options.grid) {
                  return;
              }
  
              var o = this.options,
                  i, z,
  
                  total = o.max - o.min,
                  big_num = o.grid_num,
                  big_p = 0,
                  big_w = 0,
  
                  small_max = 4,
                  local_small_max,
                  small_p,
                  small_w = 0,
  
                  result,
                  html = '';
  
  
  
              this.calcGridMargin();
  
              if (o.grid_snap) {
                  big_num = total / o.step;
              }
  
              if (big_num > 50) big_num = 50;
              big_p = this.toFixed(100 / big_num);
  
              if (big_num > 4) {
                  small_max = 3;
              }
              if (big_num > 7) {
                  small_max = 2;
              }
              if (big_num > 14) {
                  small_max = 1;
              }
              if (big_num > 28) {
                  small_max = 0;
              }
  
              for (i = 0; i < big_num + 1; i++) {
                  local_small_max = small_max;
  
                  big_w = this.toFixed(big_p * i);
  
                  if (big_w > 100) {
                      big_w = 100;
                  }
                  this.coords.big[i] = big_w;
  
                  small_p = (big_w - (big_p * (i - 1))) / (local_small_max + 1);
  
                  for (z = 1; z <= local_small_max; z++) {
                      if (big_w === 0) {
                          break;
                      }
  
                      small_w = this.toFixed(big_w - (small_p * z));
  
                      html += '<span class="irs-grid-pol small" style="left: ' + small_w + '%"></span>';
                  }
  
                  html += '<span class="irs-grid-pol" style="left: ' + big_w + '%"></span>';
  
                  result = this.convertToValue(big_w);
                  if (o.values.length) {
                      result = o.p_values[result];
                  } else {
                      result = this._prettify(result);
                  }
  
                  html += '<span class="irs-grid-text js-grid-text-' + i + '" style="left: ' + big_w + '%">' + result + '</span>';
              }
              this.coords.big_num = Math.ceil(big_num + 1);
  
  
  
              this.$cache.cont.addClass("irs-with-grid");
              this.$cache.grid.html(html);
              this.cacheGridLabels();
          }