Public
Edited
Apr 19, 2023
Insert cell
Insert cell
fake = [{ x1: 0, y1: 0, x2: 100, y2: 100 }]
Insert cell
Insert cell
Plot.plot({
grid: true,
inset: 10,
marginBottom: 40,
style: { fontFamily: "roboto", fontSize: "14", fontWeight: "bold" },
x: {
type: "linear",
label: "Offered load →",
tickFormat: "s"
},
y: { tickFormat: "s", label: "↑ Served load", domain: [1, 8001] },
color: {
type: "diverging",
reverse: true
},
marks: [
Plot.dot(obs, {
x: "i",
y: "o",
stroke: "red",
r: 4,
strokeWidth: 2
})
]
})
Insert cell
Insert cell
Insert cell
obs = [
{ i: 20, o: 20, c: 0.01 },
{ i: 100, o: 100, c: 0.04 },
{ i: 200, o: 200, c: 0.07 },
{ i: 400, o: 400, c: 0.1 },
{ i: 600, o: 600, c: 0.14 },
{ i: 800, o: 800, c: 0.18 },
{ i: 1000, o: 1000, c: 0.22 },
{ i: 2000, o: 2000, c: 0.4 },
{ i: 4000, o: 3762, c: 0.69 },
{ i: 6000, o: 5832, c: 0.99 },
{ i: 8000, o: 5940, c: 1 }
]
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