Public
Edited
Jan 5
32 forks
7 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = d3.csv(url, crash => ({
// combine the date and time strings into one Date object
dateTime: d3.timeParse('%m/%d/%Y %H:%M')(crash.date + ' ' + crash.time),
borough: crash.borough,
zip: crash.zip,
injured: +crash.injured, // + converts the string to an int
killed: +crash.killed,
cause: crash.cause
}))
Insert cell
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
// Write the code here
Insert cell
Insert cell
Write the data question here.
Insert cell
// Write the code to get the data here
Insert cell
Insert cell
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