UFO-level-1/StarterCode/static/js/app.js
// function to filter by date and time
function to filter by date and time
function to filter by date and time
function handleClick(){
    d3.event.preventDefault();
    console.log(inputDate.property("value"));
    var filteredData = tableData.filter(row => row.datetime === inputDate.property("value"))
    console.log(filteredData);   
    displayData(filteredData);
}
function handleClick ( ) { d3 . event . preventDefault ( ) ; console . log ( inputDate . property ( "value" ) ) ; var filteredData = tableData . filter ( row => row . datetime === inputDate . property ( "value" ) ) console . log ( filteredData ) ; displayData ( filteredData ) ; }
function to filter by date and time
function to filter by date and time
//prevent refresh //build new table with filter