             # only keep the renderlet once
             dc.renderlet null
 
-          setupCharts $scope.region
+          # ensure we have the population data
+          populationData.then (data) ->
+            popData = data
+            setupCharts $scope.region
 
     # what value to use for year 0
     YEAR_ZERO=1950

      statusPerManagement: { sizeX: 6, sizeY: 4, row: 21, col: 0, title: "Functionality by Management" }
      statusPerExtraction: { sizeX: 6, sizeY: 4, row: 21, col: 6, title: "Functionality by Extraction" }

    modalSpinner = null
    $scope.openSpinner = () ->
      modalSpinner = $modal.open

          .keyAccessor(keyAcc)
          .valueAccessor(valueAcc)
          .radiusValueAccessor(radiusAcc)
          .maxBubbleRelativeSize(0.06)
          .x(d3.scale.linear().domain(d3.extent(group.all(),keyAcc)))
          .y(d3.scale.linear().domain(d3.extent(group.all(),valueAcc)))
          .r(d3.scale.linear().domain(d3.extent(group.all(),radiusAcc)))
