     @setPressed $('[data-source="group"]')
     @setPressed $("[data-variables=\"#{@options.graphType}\"]")
 
-    if $(e.currentTarget).data('variables') is 'histogram'
-      @xAxisItem.find('label').html 'I\'d like to see...'
-
-    @graph.data = new Array
-    @graph.filteredData = new Array
-    @graph.filters = new Array
+    @setGraph()
 
   # Image Generation
   generateImageFromGraph: (e) =>

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

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

    @el.find('svg').empty()
    @reset()

    @setGraph()

    console.log @graph

  setXAxis: (e) =>
    @options.xAxis = $(e.currentTarget).val()
