     max = prettyNumber(max)
     avg = prettyNumber(avg)
 
-    min_cell = $('<td>').addClass('min').text(min)
-    max_cell = $('<td>').addClass('max').text(max)
-    avg_cell = $('<td>').addClass('avg').text(avg)
+    minCell = $('<td>').addClass('min').text(min)
+    maxCell = $('<td>').addClass('max').text(max)
+    avgCell = $('<td>').addClass('avg').text(avg)
     row
-      .append(swatch_cell)
-      .append(name_cell)
-      .append(min_cell)
-      .append(max_cell)
-      .append(avg_cell)
+      .append(swatchCell)
+      .append(nameCell)
+      .append(minCell)
+      .append(maxCell)
+      .append(avgCell)
     body.append(row)
 
   legend.append(body)

      )

  container.find('a.remove').on 'click', (e) ->
    graph_id = $(this).data('rem-id')
    removeGraphFromPage(graph_id)
    return false

    row = $('<tr>').addClass('line legend-' + metric.id).data('metric-id', metric.id)
    swatch = $('<div>')
    swatch.css('backgroundColor', metric.color)
    swatchCell = $('<td>').addClass('swatch').append(swatch)
    nameCell = $('<td>').addClass('name').text(metric.name)

    # Calculate our values for the serie
    min = max = metric.data[0].y
