static/js/app.js
//create the function for the initial data rendering
create the function for the initial data rendering
create the function for the initial data rendering
function init() {
    var dropdown = d3.select("#selDataset");
    d3.json("./data/samples.json").then((data) => {
        data.names.forEach(function(name) {
            dropdown.append("option").text(name).property("value");
        });
        getPlot(data.names[0]);
        getInfo(data.names[0]);
    });
}
function init ( ) { var dropdown = d3 . select ( "#selDataset" ) ; d3 . json ( "./data/samples.json" ) . then ( ( data ) => { data . names . forEach ( function ( name ) { dropdown . append ( "option" ) . text ( name ) . property ( "value" ) ; } ) ; getPlot ( data . names [ 0 ] ) ; getInfo ( data . names [ 0 ] ) ; } ) ; }
create the function for the initial data rendering
create the function for the initial data rendering
//select dropdown menu //read the data //console.log(data) //get the id data to the dropdown menu //call the functions to display the data and plots