code: function _createBins (data, maxFreq) {
    return data.map(function (bin) {
      /**
        * @typedef {object} carto.dataview.TimeSeriesBinItem
        * @property {number} index - Number indicating the bin order
        * @property {number} start - Starting UTC timestamp of the bin
        * @property {number} end - End UTC timestamp of the bin
        * @property {number} min - Minimum UTC timestamp present in the bin. Only appears if freq > 0
        * @property {number} max - Maximum UTC timestamp present in the bin. Only appears if freq > 0
        * @property {number} freq - Numbers of elements present in the bin
        * @property {number} normalized - Normalized frequency with respect to the whole dataset
        * @api
        */
      return {
        index: bin.bin,
        start: bin.start,
        end: bin.end,
        min: bin.min,
        max: bin.max,
        freq: bin.freq,
        normalized: _.isFinite(bin.freq) && maxFreq > 0 ? bin.freq / maxFreq : 0
      };
    });
  }
docs: Transform the time series raw data into {@link carto.dataview.TimeSeriesBinItem}.