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

    .attr('transform', "translate(#{margin.left},#{margin.top})")

  dataLoaded = (error, data) ->

    getUpdatedStats = ->
      xcat  = el.attr 'data-xcat'


      el.attr "data-#{axis}cat", cat
      el.attr "data-#{axis}", stat
      redraw()

    redraw()


  d3.csv('players.csv')
