                     s = new Date(s.getTime()-(d/2))
                     e = new Date(e.getTime()+(d/2))
                     [low, high] = @scales.x.domain()
-                    if @options.displayLimit != null and 
+                    if @options.displayLimit != null and
                        (e - s) > @options.displayLimit * 1000
                         [s, e] = @scales.x.domain()
                     @center(s,e)

            tooltipFormatter: @tooltipFormatter,
            binTooltipFormatter: @binTooltipFormatter

        # TODO: apply margin?
        [ start, end ] = @scales.x.domain()

        # repaint the datasets
        # First paint lines and ticks
        for datasetId of @datasets

            )
            .extent([@options.brush.start, @options.brush.end])

        @svg.append('g')
            .attr('class', 'highlight')
            .selectAll('rect')
                .attr('height', "#{@options.height - 19}")
                .attr('y', 0)

        # add a group to draw the brush in
        @svg.append('g')
            .attr('class', 'brush')
