covidData = d3
.csvParse(
await FileAttachment("positivity_by_week_by_group.csv").text(),
(d, i, columns) => (
d3.autoType(d),
{
week: d["WEEK"],
personType: d["PERSON_TYPE"],
allTests: d["ALL_TESTS"],
nvl: d["NVL(POSITIVE_TESTS,0)"],
groupPositivity: d["POSITIVITY_OF_GROUP"]
}
)
)
.sort((a, b) => b.WEEK - a.WEEK)