     @el.find('svg').empty()
     @reset()
 
-    if $(e.currentTarget).data('variables') is 'histogram'
-      @xAxisItem.find('label').html 'I\'d like to see...'
-      @graph = new Histogram { el: '#graph', channel: 'graph', height: 310, width: 512 } 
-    else
-      @xAxisItem.find('label').html 'I\'d like to see how...'
-      @graph = new Scatterplot { el: '#graph', channel: 'graph', height: 310, width: 512 } 
+    @setGraph()
+
+    console.log @graph
 
   setXAxis: (e) =>
     @options.xAxis = $(e.currentTarget).val()

    @headingText.html @action_title
    $('[data-link="graphs"]').removeClass 'pressed'

  # Graph interface functions
  setGraphType: (e) =>
    button = $(e.currentTarget)

    @setPressed $('[data-source="group"]')
    @setPressed $("[data-variables=\"#{@options.graphType}\"]")

    @setGraph()

  # Image Generation
  generateImageFromGraph: (e) =>
