StarterCode/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("samples.json").then((data)=> {
        console.log(data)
        data.names.forEach(function(name) {
            dropdown.append("option").text(name).property("value");
        });
        demographicInfo(data.names[0]);
    });
}
function init ( ) { var dropdown = d3 . select ( "#selDataset" ) ; d3 . json ( "samples.json" ) . then ( ( data ) => { console . log ( data ) data . names . forEach ( function ( name ) { dropdown . append ( "option" ) . text ( name ) . property ( "value" ) ; } ) ; demographicInfo ( 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  // get the id data to the dropdwown menu // call the functions to display the data and the plots to the page // bar(data.names[0]); // bubble(data.names[0]); // gauge(data.names[0]);