     @ul = @wrapper.append('ul')
       .attr('class', 'statistics')
 
-  createStats: =>
-    @statistics = new Array
-    @statistics.push [stat, @[stat]()] for stat in ['mean', 'median', 'mode', 'min', 'max', 'variance', 'standardDeviation', 'skew', 'kurtosis']
+  statistics: ['mean', 'median', 'mode', 'min', 'max', 'variance', 'standardDeviation', 'skew', 'kurtosis']
 
   displayStats: => 
+    @statKey = _.last(@opts.selectedKeys)
+    return unless !@ul
+    console.log 'here'
+    @statData = _.pluck @opts.data, @statKey
+
+    @count = @statData.length
+    @sum = _.foldl @statData, ((memo, num) -> memo + num), 0
+
     @ul.selectAll('li').remove()
 
     @title.text(@unitsFormatter(@formatKey(@statKey)))

      .enter().append('li')
      .attr('data-stat', (d) -> d[0])
      .html((d) => 
        if isNaN(d[1]) or d[1] is Infinity
          "<label>#{@formatKey(d[0])}:</label> <span>&nbsp</span>"
        else

    super selector
    @opts.displayFormat = ',.03f'

  events: 
    'selector' : 'createList'
    'data keys-selection' : 'displayStats'

  createList: =>
    @wrapper = @opts.selector.append('div')
