// try replacing this line with the FileAttachment to load our data
data=d3.csv(url,d3.autoType)
Inputs.table(data)
// using an index to select an item from an array
data[0]
// this is like extracting a column from the data
data.map(d=>d.item_price)
// calculate the minimum of a column
d3.min(data,d=>d.item_price)
// calculate the minimum and maximum of a column
d3.extent(data,d=>d.item_price)
// try creating a slider which goes from 0 to however many data points are in our data array
// let's use the value of our slider to
// data[index]
// type your code here
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.