Public
Back
Version 1
8/26/2023
let simplePlot = (async function () {
const Plot = await import("https://esm.sh/@observablehq/plot@0.6.10");
const d3 = await import("https://esm.sh/d3@7");
const { document } = await import("https://esm.sh/linkedom@0.15").then((
{ parseHTML: p },
) => p(`<a>`));
const barley = await d3.csv(
"https://raw.githubusercontent.com/observablehq/plot/main/test/data/barley.csv",
d3.autoType,
);
return Plot.plot({
document,
marginLeft: 110,
height: 800,
grid: true,
x: {
nice: true,
},
y: {
inset: 5,
},
color: {
type: "categorical",
},
facet: {
data: barley,
y: "site",
marginRight: 90,
},
marks: [
Plot.frame(),
Plot.dot(barley, {
x: "yield",
y: "variety",
stroke: "year",
sort: {
fil-beckerbarley.web.val.run
Updated: April 22, 2024