     'click #setting-data-source button'       : 'setDataSource'
     'change #sample-size'                     : 'setSampleSize'
     'click button[type="submit"]'             : 'onSubmit'
+    'change #x-axis'                          : 'setXAxis'
+    'change #y-axis'                          : 'setYAxis'
 
   constructor: ->
     super


  # Graph interface functions
  setXAxis: (e) =>
    @options.xAxis = $(e.currentTarget).val()

  setYAxis: (e) =>
    @options.yAxis = $(e.currentTarget).val()

  setGraphType: (e) =>

      filter.func = new Function "item", "return item['type'] === '#{@options.galaxyType}'"
      @graph.filters.push filter

    @graph.getDataSource("SkyServerSubject", @options.sampleSize)
    # @histogram.getDataSource("InteractiveSubject", {sample: @options.sample, limit: parseInt(@sampleSize.val()), user: false})

  # Helper functions
