     dimensions = []
     xfilter = null
     popData = null
-    map = null
 
     # what value to use for year 0
     YEAR_ZERO=1950


        dc.dataCount(".dc-data-count").dimension(xfilter).group(all)

        initDataTable("#dc-data-table", wards)
        initMap("#wpLocations", wards)

        dc.renderAll()


          chart.rescale())
        .yAxis().ticks(4)

    loadDataTable = (selector, dim) ->
      exists = $.fn.DataTable.fnIsDataTable($(selector))

      if !exists
        cols = $scope.fields.map((x) ->
          if x.endsWith("_year")
            mData: x
