           chart.rescale())
         .yAxis().ticks(4)
 
-    reloadTable = (datatable,dim) ->
-      alldata = dim.top(Infinity)
-      datatable.fnClearTable()
-      datatable.fnAddData(alldata)
-      datatable.fnDraw()
-
-    initDataTable = (selector, dim) ->
+    loadDataTable = (selector, dim) ->
       exists = $.fn.DataTable.fnIsDataTable($(selector))
 
-      if exists
-        datatable = $(selector).dataTable()
-        reloadTable(datatable,dim)
-      else
+      if !exists
         cols = $scope.fields.map((x) ->
           if x.endsWith("_year")
             mData: x

          aaData: dim.top(Infinity),
          bDestroy: true,
          aoColumns: cols

      dc.chartRegistry.list().forEach (chart) ->
        chart.on "filtered", () ->
          dc.events.trigger () ->
            reloadTable(datatable,dim)

    initMap = (container, dim) ->
      # Have we already initialized the map?
      if !map
        id = "regionalDashMap"
        e = $('<div id="' + id + '"></div>')
        $(container).append(e)


    dimensions = []
    xfilter = null
    popData = null

    # what value to use for year 0
    YEAR_ZERO=1950
