Commits

pudo committed f62925e

fix treemap switcher

Comments (0)

Files changed (2)

theme/public/js/jitload.js

 OpenSpending.DatasetPage.Controller = Backbone.Controller.extend({
         routes: {
             "": "treemap",
+            "treemap": "treemap",
             "timeseries": "timeseries"
         },
         initialize: function(config) {

wdmmgext/treemap/plugin.py

         return stream
 
     def _get_color(self, obj, aggregates, time_values):
-        if isinstance(obj, dict) and 'color' in obj:
-            return obj.get('color') 
-        elif isinstance(obj, dict):
+        if isinstance(obj, dict):
             pcolor = parent_color(obj)
             crange = list(color_range(pcolor, len(aggregates)))
             return list(crange)[aggregates.index((obj, time_values))]