StarterCode/static/js/app.js
//adds the names to the list of options in the html
adds the names to the list of options in the html
adds the names to the list of options in the html
function addSelectionOptions(names) {
	var body = d3.select("#selDataset");
	body.selectAll("option")
		.data(names)
		.enter()
		.append("option")
		.attr("value", data => data)
		.text(data => data);
	optionChanged();
}
function addSelectionOptions ( names ) { var body = d3 . select ( "#selDataset" ) ; body . selectAll ( "option" ) . data ( names ) . enter ( ) . append ( "option" ) . attr ( "value" , data => data ) . text ( data => data ) ; optionChanged ( ) ; }
adds the names to the list of options in the html
adds the names to the list of options in the html
// select the body where we will append the options // add the names data // submit the data // append new options per data // add attribute called value with the names element as value // add element's value as text // options changed so the first selected is the one loaded 