code: function updateValues(id, withoutStep) {
                  if (!withoutStep) {
                      margin = (areaLength - totalLength - itemLength) / 2;
                      if (margin < posMin) {
                          margin = (areaLength - itemLength) / 2;
                          totalLength = 0;
                          step++;
                      }
                  }
                  steps[id] = step;
                  margins[step] = $$.isLegendInset ? 10 : margin;
                  offsets[id] = totalLength;
                  totalLength += itemLength;
              }
docs: MEMO: care about condifion of step, totalLength