function remove_colour_barchart(d){

    d3.selectAll(".bar")
    .style("fill", function(d){

        if (d.searched_house == true)
        {
            return "yellow"
        }
        else if (barchart_data.indexOf(d) !== -1)
        {
            return "steelblue"
        }
    })
}
// function to remove colours from the barchart
function to remove colours from the barchart
function to remove colours from the barchart
function remove_colour_barchart(d){
    d3.selectAll(".bar")
    .style("fill", function(d){
        if (d.searched_house == true)
        {
            return "yellow"
        }
        else if (barchart_data.indexOf(d) !== -1)
        {
            return "steelblue"
        }
    })
}
function remove_colour_barchart ( d ) { d3 . selectAll ( ".bar" ) . style ( "fill" , function ( d ) { if ( d . searched_house == true ) { return "yellow" } else if ( barchart_data . indexOf ( d ) !== - 1 ) { return "steelblue" } } ) }
function to remove colours from the barchart
function to remove colours from the barchart