Public
Edited
May 6, 2023
1 fork
21 stars
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot(spec)
Insert cell
Insert cell
Insert cell
spec = ({
marginLeft: 120,
marginRight: 90,
grid: true,
color: { type: "ordinal", scheme: "category10", legend: true },
x: { nice: true, grid: true },
y: { grid: true },
facet: { data, y: "site", marginRight: 90 },
marks: [Plot.dot(data, { x: "yield", y: "variety", fill: "year" })]
})
Insert cell
Insert cell
Olli = require("olli@1.0.7", "olli-adapters@1.0.7") // this release of Olli is compatible with Plot@0.6.6
Insert cell
Plot = require("@observablehq/plot@0.6.6")
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