       legend_target.append('span')
           .text((d) -> d.name)
 
-      if params.bgcolor?
-        svg.style 'background-color', params.bgcolor
-
+      svg.style 'background-color', params.bgcolor
+

        # 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


      unhovers.onValue '.classed', 'hovered', false

      if type is 'line'
        area_opacity = params.areaAlpha
        line_opacity = 1.0

        area = d3.svg.area()
