       # method raises (on IE8) an exception before we have a chance to notify
       # the user that something went wrong.
       try
-        @color = d3.scale.category20c()
         D3.merit_order.series = @model.series
         @nodes = new D3.merit_order.NodeList(D3.merit_order.data)
       @initialize_defaults()

D3.merit_order =
  data:
    [
      {key: 'central_gas_chp'},
      # {key: 'co_firing_coal'},
      {key: 'coal_chp'},
      {key: 'coal_conv'},
      {key: 'coal_igcc'},
      {key: 'coal_igcc_ccs'},
      {key: 'coal_pwd'},
      {key: 'coal_pwd_ccs'},
      {key: 'gas_ccgt'},
      {key: 'gas_ccgt_ccs'},
      {key: 'gas_conv'},
      {key: 'gas_turbine'},
      {key: 'must_run'}, # something's broken here
      {key: 'nuclear_iii'},
      {key: 'oil_plant'},
      {key: 'solar_pv'},
      {key: 'wind_turbines'},
    ]

  Node: class extends Backbone.Model

      legends.append("svg:rect").
        attr("width", 10).
        attr("height", 10).
        attr("fill", (d) => d.get 'color')
      legends.append("svg:text").
        text((d) -> I18n.t "output_element_series.#{d.get('key')}").
        attr("x", 15).
