         enter().
         append("div").
         attr("class", "cell").
-        style("background", (d, i) => @color(i)).
-        text((d) -> if d.children then null else d.get('gquery')).
+        style("background", (d, i) =>
+          if d.children
+            null
+          else
+            d.get('color') || @color(i)).
+        text((d) -> if d.children then null else d.label()).
         call(@cell)
 
     refresh: =>

      {gquery: 'biomass_agriculture_in_mekko_of_final_demand'}
    ],
    oil: [
      {gquery: 'oil_industry_in_mekko_of_final_demand'},
      {gquery: 'oil_households_in_mekko_of_final_demand'},
      {gquery: 'oil_buildings_in_mekko_of_final_demand'},
      {gquery: 'oil_transport_in_mekko_of_final_demand'},
      {gquery: 'oil_other_in_mekko_of_final_demand'},
      {gquery: 'oil_agriculture_in_mekko_of_final_demand'}
    ],
    gas: [
      {gquery: 'gas_industry_in_mekko_of_final_demand'},
      {gquery: 'gas_households_in_mekko_of_final_demand'},
      {gquery: 'gas_buildings_in_mekko_of_final_demand'},
      {gquery: 'gas_transport_in_mekko_of_final_demand'},
      {gquery: 'gas_other_in_mekko_of_final_demand'},
      {gquery: 'gas_agriculture_in_mekko_of_final_demand'}
    ],
    coal: [
      {gquery: 'coal_industry_in_mekko_of_final_demand'},
      {gquery: 'coal_households_in_mekko_of_final_demand'},
      {gquery: 'coal_buildings_in_mekko_of_final_demand'},
      {gquery: 'coal_transport_in_mekko_of_final_demand'},
      {gquery: 'coal_other_in_mekko_of_final_demand'},
      {gquery: 'coal_agriculture_in_mekko_of_final_demand'}
    ],
    waste: [
      {gquery: 'waste_industry_in_mekko_of_final_demand'},

    val: =>
      @gquery.get('future_value')

    label: => @get('label') || @get('gquery')

  View: class extends D3ChartView
    el: "body"

    initialize: ->
      @initialize_defaults()
      @color = d3.scale.category20c()
      @prepare_data()

    # D3 layouts expect data in a precise format
    prepare_data: =>
