UFO-level-1/static/js/app.js
/* Create a function to filter the javascript file
when the search date button is pressed */
Create a function to filter the javascript file
when the search date button is pressed
Create a function to filter the javascript file when the search date button is pressed
function searchTable () {
    var date = d3.select("#datetime").property("value");
    if (date)  {
        var filterdata = tableData.filter(row => row.datetime === date);
    } 
    console.log(filterdata);
    createTable(filterdata);
}
function searchTable ( ) { var date = d3 . select ( "#datetime" ) . property ( "value" ) ; if ( date ) { var filterdata = tableData . filter ( row => row . datetime === date ) ; } console . log ( filterdata ) ; createTable ( filterdata ) ; }
Create a function to filter the javascript file
when the search date button is pressed
Create a function to filter the javascript file when the search date button is pressed