datareturn = {
if (dd1 == "Cases") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, cases}) => [fips, +cases]);
}
else if (dd1 == "Deaths") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, deaths}) => [fips, +deaths]);
}
else if (dd1 == "Confirmed Cases") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, confirmed_cases}) => [fips, +confirmed_cases]);
}
else if (dd1 == "Confirmed Deaths") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, confirmed_deaths}) => [fips, +confirmed_deaths]);
}
else if (dd1 == "Probable Cases") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, probable_cases}) => [fips, +probable_cases]);
}
else if (dd1 == "Probable Deaths") {
var df = d3.csv("https://raw.githubusercontent.com/nytimes/covid-19-data/master/live/us-counties.csv", ({fips, probable_deaths}) => [fips, +probable_deaths]);
}
return df;
}