Public
Edited
Apr 17, 2023
Insert cell
Insert cell
// importando los datos "pizzaorders"
//
import { pizzaorders } from "@observablehq/data-vis-course-assignment"
Insert cell
pizzaorders
Insert cell
pizzaorders
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
height: escala(muestra),
marks: [
Plot.dot(
sample,
Plot.dodgeY({
x: columna,
r: 2,
fill: "grey",
stroke: "black"
})
)
]
})
Insert cell
escala = d3.scaleLinear().domain([1000, 2000]).range([300, 500])
Insert cell
escala(2100)
Insert cell
import { Wrangler, op } from "@observablehq/data-wrangler"
Insert cell
Wrangler(pizzaorders)
Insert cell
sample = aq
.from(pizzaorders)
.select("orders", "unit_price", "total")
.sample(muestra)
.objects()
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