function updateBrushToNow() {

        // get current time range
        var dataRange = d3.extent(data, dateFn);

        // update brush and focus chart with recent data
        d3.select('.brush')
            .transition()
            .duration(UPDATE_TRANS_MS)
            .call(brush.extent([new Date(dataRange[1].getTime() - FOCUS_DATA_RANGE_MS), dataRange[1]]));
        brushed(true);

        // clear user brush tracking
        brushInProgress = false;
    }
// clears the current user brush and resets to the current real time data
clears the current user brush and resets to the current real time data
clears the current user brush and resets to the current real time data
function updateBrushToNow() {
        var dataRange = d3.extent(data, dateFn);
        d3.select('.brush')
            .transition()
            .duration(UPDATE_TRANS_MS)
            .call(brush.extent([new Date(dataRange[1].getTime() - FOCUS_DATA_RANGE_MS), dataRange[1]]));
        brushed(true);
        brushInProgress = false;
    }
function updateBrushToNow ( ) { var dataRange = d3 . extent ( data , dateFn ) ; d3 . select ( '.brush' ) . transition ( ) . duration ( UPDATE_TRANS_MS ) . call ( brush . extent ( [ new Date ( dataRange [ 1 ] . getTime ( ) - FOCUS_DATA_RANGE_MS ) , dataRange [ 1 ] ] ) ) ; brushed ( true ) ; brushInProgress = false ; }
clears the current user brush and resets to the current real time data
clears the current user brush and resets to the current real time data
// get current time range // update brush and focus chart with recent data // clear user brush tracking