define([
  'stache!common/templates/visualisations/completion_numbers',
  'extensions/views/view',
  'common/views/visualisations/volumetrics/number',
  'common/views/visualisations/volumetrics/submissions-graph'
],
function (template, View, VolumetricsNumberView, SubmissionGraphView) {
  var CompletionNumbersView = View.extend({
    template: template,

    views: {
      '#volumetrics-submissions-selected': {
        view: VolumetricsNumberView,
        options: {
          valueAttr: 'mean',
          selectionValueAttr: 'uniqueEvents',
          labelPrefix: 'mean per week over the'
        }
      },
      '#volumetrics-submissions': {
        view: SubmissionGraphView,
        options: {
          valueAttr:'uniqueEvents'
        }
      }
    }
  });

  return CompletionNumbersView;
});

define([
  'stache!common/templates/visualisations/completion_numbers',
  'extensions/views/view',
  'common/views/visualisations/volumetrics/number',
  'common/views/visualisations/volumetrics/submissions-graph'
],
function (template, View, VolumetricsNumberView, SubmissionGraphView) {
  var CompletionNumbersView = View.extend({
    template: template,

    views: function() {
      var period = this.collection.options.period || 'week';
      return {
        '#volumetrics-submissions-selected': {
          view: VolumetricsNumberView,
          options: {
            valueAttr: 'mean',
            selectionValueAttr: 'uniqueEvents',
            labelPrefix: 'mean per ' + period + ' over the'
          }
        },
        '#volumetrics-submissions': {
          view: SubmissionGraphView,
          options: {
            valueAttr:'uniqueEvents'
          }
        }
      };

    }

  });

  return CompletionNumbersView;
});

Update labelPrefix to include correct period.
Update labelPrefix to include correct period.

Not sure if we need to add a new test for this file, since this is so minor?
