     type = "line"  unless type?
     txtattr = font: "12px sans-serif"
     chart.labels = raph.set()
-    h = raph.height - 124
+    h = 20
     sy = h
     longest = _.max(labels, (l) ->
       l.length
     )
 
-    x = $(elem).width()-(9 * longest.length)
+    raph.setSize(raph.width + 20 + (9 * longest.length), raph.height)
+
+    x = $(elem).width() + 20
 
     raph.rect(x - 10, sy - 10, 9 * longest.length, 20 * labels.length).attr
       fill: "rgba(255,255,255,.7)"


    for item in xpoints
      index = item.attr("text")
      if index % 1 == 0
        item.attr("text", possibleX[index])
        item.attr({transform: "r45"});

    #assign each possible x value a numerical index
    possibleX = _.unique(_.flatten(xset))

    largestY = _.max(_.flatten yset, (i) ->
      return i;
    );


    xdata = [];
