Public
Edited
Nov 4, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
coviddata = {
let data = await FileAttachment("CovidData.csv").csv({ typed: true });
data.forEach((o) => (o.Date = d3.utcParse("%m/%d/%Y")(o.Date)));
data.max_cases = d3.max(data.map((o) => o.cases));
data.max_deaths = d3.max(data.map((o) => o.deaths));
return data;
}
Insert cell
// There are only four dates to consider
_.uniq(coviddata.map((o) => o.Date))
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more