     width = $("##{@chartContainer}").width() - 100
     height = 600
     $("##{@chartContainer}").empty()
-    
+
     @graph = new Rickshaw.Graph(
       element: $("##{@chartContainer}")[0]
       width: width


class root.MongodbLoggerAnalytics
  constructor: (@mongoData) ->
    @chartContainer = 'analyticData'
    @_resultsData = []
    @_collectAllData()

      graph: @graph
    )
    yAxis.render()

$ ->
  $(document).on 'submit', '#analyticForm', (e) =>
    e.preventDefault()
    form = $(e.currentTarget)
    $.ajax
      url: form.attr('action')
      dataType: 'json'
      data: form.serializeArray()
      type: "POST"
      success: (data, textStatus, jqXHR) =>
