   attach: ->
     @rootView.append @
     @focus()
-    @append()
+    @draw()
 
   detach: =>
     super()

    x.rangeRoundBands [0, w - pl - pr], 0.1
    y.domain([0, max]).range [h, 0]

    vis = d3.select('svg g')

    bars = vis.selectAll('g.bar')
      .data(data)
    .enter().append('g')
      .attr('transform', (d, i) -> "translate(#{x(i)}, 0)")

    bars.append('rect')
      .attr('width', x.rangeBand())
      .attr('height', (d, i) -> y(d.value))


  track: =>
    date = new Date

    @eventlog[times] ||= 0
    @eventlog[times] += 1

    @eventlog.shift() if @eventlog.length > 59

  toggle: ->
    if @hasParent()
