Public
Edited
Jan 16, 2023
Insert cell
penguins
Insert cell
Inputs.table(penguins)
Insert cell
d3.group(penguins, (d) => d.sex)
Insert cell
d3.extent(penguins, (d) => d.culmen_length_mm)
Insert cell
Plot.dot(penguins, {x: "culmen_length_mm", y:"culmen_depth_mm", fill: "sex"}).plot()
Insert cell
stocks = FileAttachment("stocks.csv").csv()
Insert cell
timeParse = d3.timeParse("%b %Y")
Insert cell
stocks_parse = stocks.map(d => {

d.price = +(d.price)
d.date = timeParse(d.date)

return d
})
Insert cell
Plot.line(stocks_parse, {x:"date", y: "price", stroke: "symbol"}).plot()
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