Public
Edited
Jan 8, 2023
Fork of Simple D3
Insert cell
Insert cell
chart = {
const svg = d3.create("svg")
.attr("width", width)
.attr("height", height);

svg
.selectAll("circle")
.data(d3.range(100))
.join("circle")
.attr("cx", d => d * 50)
.attr("cy", height / 2)
.attr("r", d => Math.random() * 20)
.attr("fill", "hsl(216deg 100% 13%)");
return svg.node();
}
Insert cell
height = 100
Insert cell
text = fetch("https://httpstat.us/200/cors").then(response => response.text())
Insert cell
penguins = FileAttachment("penguins.csv").csv({typed: true})
Insert cell
cars = FileAttachment("cars.csv").csv()
Insert cell
confetti = import("https://cdn.skypack.dev/canvas-confetti")
Insert cell
confetti.default() // 🎉
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