Published unlisted
Edited
Dec 10, 2021
1 star
Insert cell
Insert cell
Insert cell
plot = {
let p = Plot.plot({
marks: [Plot.line(d3.range(0, 20, 0.1).map((t) => [t, Math.sin(t)]))],
x: { label: "t" },
y: { label: "y" },
margin: 60
});

let sel = d3.select(p).selectAll("svg > g > text").style("font-size", "20px");

return p;
}
Insert cell
Insert cell
{
let p = Plot.plot({
marks: [Plot.line(d3.range(0, 20, 0.1).map((t) => [t, Math.sin(t)]))],
x: { label: "t" },
y: { label: "y" },
margin: 60
});

d3.select(p).style("font-size", "30px");

return p;
}
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