Public
Edited
Jan 16, 2023
Insert cell
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
Insert cell
stocks = FileAttachment("stocks.csv").csv()
Insert cell
stocks_parsed = stocks.map(d => {
d.valeur = 1
d.price = +d.price
d.date_parsed = timeParse(d.date)
return d
})
Insert cell
timeParse = d3.timeParse("%b %Y")
Insert cell
Plot.line(stocks_parsed, {x: "date_parsed", y: "price", stroke: "symbol"}).plot()
Insert cell
stocks_parsed
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more