       x = d3.time.scale().range([0, width])
       y = d3.scale.linear().range([height, 0])
 
-      get_value = params.get_value or ([value, timestamp]) -> value
-      get_timestamp = params.get_timestamp or ([value, timestamp]) -> timestamp
+      get_value = params.get_value
+      get_timestamp = params.get_timestamp
 
       x_axis = d3.svg.axis().scale(x).orient('bottom')
       y_axis = d3.svg.axis().scale(y).orient('left')
 
-      color = d3.scale.ordinal().range params.d3_colors ? colors.d3.category10
+      color = d3.scale.ordinal().range params.d3_colors
 
       mouse_over = new Bacon.Bus
       mouse_out = new Bacon.Bus

        # TODO error handling
        @error error

    draw: (container, data, params) ->
      width = params.width or 800
      height = params.height or 400

      type = params.type or 'line'

      margin = top: 20, right: 80, bottom: 30, left: 80


      legend_target.append('span')
          .text((d) -> d.name)

      svg.style 'background-color', params.bgcolor

