     .attr('transform', "translate(#{margin.left},#{margin.top})")
 
   dataLoaded = (error, data) ->
+
+    redraw = ->
+      stats = getUpdatedStats()
+      console.log stats
 
     getUpdatedStats = ->
       xcat  = el.attr 'data-xcat'


      el.attr "data-#{axis}cat", cat
      el.attr "data-#{axis}", stat
      console.log getUpdatedStats()


  d3.csv('players.csv')


      {xstat, ystat}

    d3.selectAll('.js-stats .js-stat').on 'change', (e) ->
      select = d3.select this
      stat = @options[@selectedIndex].value
