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

    @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']

  displayStats: => 
    @ul.selectAll('li').remove()

    @title.text(@unitsFormatter(@formatKey(@statKey)))

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

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

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