function SamplesList() {
    // Refer to option list on index.html
    var selDataset = document.getElementById('selDataset');
    // Refer to names route and populate option list
    Plotly.d3.json("/names", function(error, samples) {
        if (error) return console.warn(error);
        for (var i = 0; i < samples.length;  i++) {
            var currentOption = document.createElement('option');
            currentOption.text = samples[i];
            currentOption.value = samples[i]
            selDataset.appendChild(currentOption);
        }
    })
}
// Populate option list with sample values
Populate option list with sample values
Populate option list with sample values
function SamplesList() {
    var selDataset = document.getElementById('selDataset');
    Plotly.d3.json("/names", function(error, samples) {
        if (error) return console.warn(error);
        for (var i = 0; i < samples.length;  i++) {
            var currentOption = document.createElement('option');
            currentOption.text = samples[i];
            currentOption.value = samples[i]
            selDataset.appendChild(currentOption);
        }
    })
}
function SamplesList ( ) { var selDataset = document . getElementById ( 'selDataset' ) ; Plotly . d3 . json ( "/names" , function ( error , samples ) { if ( error ) return console . warn ( error ) ; for ( var i = 0 ; i < samples . length ; i ++ ) { var currentOption = document . createElement ( 'option' ) ; currentOption . text = samples [ i ] ; currentOption . value = samples [ i ] selDataset . appendChild ( currentOption ) ; } } ) }
Populate option list with sample values
Populate option list with sample values
// Refer to option list on index.html // Refer to names route and populate option list