     std: false,
              sum: true,
            },
          }),
    };
  }

  function createHistograms_(data, interval, histograms) {
    if (data.histograms[interval.name] === undefined) {
      data.histograms[interval.name] = createEmptyHistogram_(interval,
          histograms);
    }
    if (data.histograms[interval.name].perSecond) {
      for (const sample of data.model.device.powerSeries.getSamplesWithinRange(
          interval.bounds.min, interval.bounds.max)) {
        data.histograms[int