             .datum(data)
             .attr("class", fig.class)
             .attr("d", fig.getFig(x, y, width, height))
-    # Redraw this if the window is resized
-    $(window).resize(() -> drawGraph(elem, figures))
 
 # ######### GRAPHING FUNCTIONS ######### #
 


# Get an SVG object with the dimensions given
getSVG = (elem, width, height, margin) ->
    d3.select(elem).append("svg")
          .attr("width", width + margin.left + margin.right)
          .attr("height", height + margin.top + margin.bottom)
        .append("g")
          .attr("transform", "translate(" + margin.left + "," + margin.top + ")")


        right:  10
    }

getWidth  = () -> 500
getHeight = () -> Math.floor(getWidth()/3)

# Get the submission data for the given facility_id
# returns an array of objects:
