     draw: =>
       [@width, @height] = @available_size()
 
-      # prepare legend
-      # remove duplicate target series. Required for backwards compatibility.
-      # When we'll drop the old charts we should use a single serie as target
-      # rather than two
-      target_lines = []
-      series_for_legend = []
-      for s in @series
-        label = s.get 'label'
-        if s.get 'is_target_line'
-          if _.indexOf(target_lines, label) == -1
-            target_lines.push label
-            series_for_legend.push s
-          # otherwise the target line has already been added
-        else
-          series_for_legend.push s
-
-      legend_columns = if series_for_legend.length > 6 then 2 else 1
-      legend_rows = series_for_legend.length / legend_columns
-      legend_margin = 20
-
-      @series_height = @height - legend_margin
+      @series_height = @height - @legend_margin
 
       @svg = @create_svg_container @width, @series_height, @margins
 
-      @draw_legend
-        svg: @svg
-        series: series_for_legend
-        width: @width
-        vertical_offset: @series_height + legend_margin
-        columns: legend_columns
+      @display_legend()
 
       columns = @get_columns()
 

      if @model.year_1990_series().length
        result.unshift(1990)
      result

    # the stack layout method expects data to be in a precise format. We could
    # force the values() method but this way is simpler and cleaner.

      left: 30
      right: 40

    legend_margin: 20

    is_empty: =>
      total = 0

