             @options.width = if @useBBox then svg.getBBox().width else svg.clientWidth
             @scales.x.range([0, @options.width])
 
-            redraw()
+            @redraw()
 
         d3.select(window).on('resize', resize)
 
         # zooming & dragging
         zoom = =>
-            redraw()
+            @redraw()
 
         @options.zoom = d3.behavior.zoom()
             .x(@scales.x)

        for dataset in @options.datasets
            do (dataset) => @drawDataset(dataset)

        redraw = =>
            # update brush
            @brush.x(@scales.x).extent(@brush.extent())


        @options.domain.end = end

        @scales.x.domain([ @options.domain.start, @options.domain.end ])
        @redraw()

        true

    select: (params...) ->
        start = new Date(params[0])
