 
   .controller 'RegionalDashboardCtrl', ($scope, $http, $q, $filter, Map,
                                         gettext, modalSpinner, populationData) ->
+    # should http calls be cached
+    # FIXME: should be application level setting
+    cacheHttp = false
+
+    # FIXME: create our own statusColor version to prevent weird values
+    # from modifying the original one
+    stColor = d3.scale.ordinal()
+      .domain(statusColor.domain())
+      .range(statusColor.range());
+
     $scope.gridsterOpts =
       margins: [10, 10]
       columns: 12

        pieChart quantityChart, quantities, quantities.group(), all
        pieChart qualityChart, qualities, qualities.group(), all
        pieChart extractionChart, extractionTypes, extractionTypes.group(), all
        pieChart statusChart, statuses, statusGroup, all, statusColor
        pieChart paymentChart, paymentTypes, paymentGroup, all
        pieChart installerChart, installers, installersGroup, all
        pieChart funderChart, funders, fundersGroup, all

        .stack(group, "Not Functional", (d) -> d.value["not functional"])
        .x(d3.scale.ordinal())
        .xUnits(dc.units.ordinal)
        .colors(stColor)
        .elasticY(true)
        .elasticX(true)
        .gap(gap || 10)
