function brushed() {
            x.domain(brush.empty() ? x2.domain() : brush.extent()); // If brush is empty then reset the x domain to default, if not then make it the brush extent 
            focus.selectAll(".line").attr("d", line);
            focus.select(".x.axis").call(xAxis);
        }
//here make the line zoom on the brushed part
here make the line zoom on the brushed part
here make the line zoom on the brushed part
function brushed() {
            x.domain(brush.empty() ? x2.domain() : brush.extent()); 
            focus.selectAll(".line").attr("d", line);
            focus.select(".x.axis").call(xAxis);
        }
function brushed ( ) { x . domain ( brush . empty ( ) ? x2 . domain ( ) : brush . extent ( ) ) ; focus . selectAll ( ".line" ) . attr ( "d" , line ) ; focus . select ( ".x.axis" ) . call ( xAxis ) ; }
here make the line zoom on the brushed part
here make the line zoom on the brushed part
// If brush is empty then reset the x domain to default, if not then make it the brush extent 