
      index = 0;
      for (i = 0; i < countShown; ++i) {
        let padding = row.insertCell(index++);
        padding.width = "4";
        createCell(row, index, true, i == maxShown - 1 && count > maxShown, true);
        index++;
      }

      row = diagram.insertRow(2);
      index = 0;
      for (i = 0; i < countShown; ++i) {
        let padding = row.insertCell(index++);
        padding.width = "4";
        createCell(row, index, i < 2, i == maxShown - 1 && count > maxShown, true);
        index++;