code: function _createCategories (data) {
    return _.map(data, function (item) {
      /**
       * @typedef {object} carto.dataview.CategoryItem
       * @property {boolean} group - Category is a group
       * @property {string} name - Category name
       * @property {number} value - Category value
       * @api
       */
      return {
        group: item.agg,
        name: item.name,
        value: item.value
      };
    });
  }
docs: Transform the histogram raw data into {@link carto.dataview.CategoryItem}