function collectSeriesTypesInfo(children) {
  const result = {};
  children.filter(isSeriesChild).forEach(child => {
    const {displayName} = child.type;
    const {cluster} = child.props;
    if (!result[displayName]) {
      result[displayName] = {
        sameTypeTotal: 0,
        sameTypeIndex: 0,
        clusters: new Set()
      };
    }
    result[displayName].clusters.add(cluster);
    result[displayName].sameTypeTotal++;
  });
  return result;
}
Collect the map of repetitions of the series type for all children.
@param {Array} children Array of children.
@returns {{}} Map of repetitions where sameTypeTotal is the total amount and
sameTypeIndex is always 0.