 
     @command 'core:cancel', @detach
     @statusBar = @rootView.find '.status-bar'
+    @panes = @rootView.find('#panes')
     @css 'background', @statusBar.css('background')
 
     date = new Date(startDate)

      y.domain [0, max]

      bars.data(newdata).transition()
        .attr('height', (d, i) ->  h - y(d.value) - 17)
        .attr('y', (d, i) -> y(d.value))

      bars.classed('max', (d, i) -> d.value == max)

      @attach()

  attach: ->
    @panes.append(@)
    @draw()

  detach: =>
