 
     # @returns the [{key: label, values: coordinates}] nvd3 data
     chart_data = (resources, config) ->
-      
       # @returns the {key, values} pair
       format_data_series = (resources, x_accessor, data_series) ->
-      
         # @returns the graph [x, y] coordinates
         coordinates = (resources, x_accessor, y_accessor) ->
           [x_accessor(rsc), y_accessor(rsc)] for rsc in resources
         
         key: data_series.label
         values: coordinates(resources, x_accessor, data_series.accessor)
+        color: data_series.color
 
       format_data_series(resources, config.x.accessor, ds) for ds in config.y.data
     

        [
          {
            label: 'FXL Ktrans'
            color: 'OliveDrab'
            accessor: (session) -> session.modeling.fxl_k_trans
          }
          {
            label: 'FXR Ktrans'
            color: 'BurlyWood'
            accessor: (session) -> session.modeling.fxr_k_trans
          }
        ]


    # Return the graph configuration.
    data: chart_data(resources, config)
    yFormat: decimal_formatter(precision)
    yLabel: config.y.label
    yMaxMin: _.values(chart_y_range)

  # Replaces the given text elements with hyperlinks.
  d3Hyperlink: (element, href, style) ->  
    # The parent node wrapped by D3.
