     @customTooltip = (tooltip) ->
       # Find the tooltip
       tooltipEl = angular.element('#chartjs-tooltip')
-      if (!tooltipEl[0]) 
+      if (!tooltipEl[0])
         angular.element('body').append('<div id="chartjs-tooltip"></div>')
         tooltipEl = angular.element('#chartjs-tooltip')
 

    # positivesOnly: if true (default), negative bars will be turned into their opposite
    @barChart = (inputData, opts={}, positivesOnly=true) ->
      _self.setTooltipsTextLayout(opts)
      
      index = 0
      colors = []
      for value in inputData.values


      # Avoid mouse glitches
      canvasEl.bind 'mouseleave', (event) ->
        tooltipEl.remove() unless event.relatedTarget.id == 'chartjs-tooltip'

      tooltipEl.bind 'mouseleave', (event) ->
        tooltipEl.remove() unless event.relatedTarget.tagName == 'CANVAS'


      # Display, position, and set styles for font
      tooltipEl.css({
        'background-color': '#17262d'
        color: 'white'

        opacity: 1
        transition: 'opacity 0.5s, top 0.5s, left 0.5s'

