Published
Edited
Feb 2, 2022
Insert cell
# All programming languages are just C lang
Insert cell
viewof range2 = Inputs.range([2, 100], {label: "Num Langs"})
Insert cell
Plot.plot({
marks: [
Plot.barY(data, {y: "y", x: "x", sort: {x: "y", reverse: true, limit: range2}})
]
})
Insert cell
Insert cell
// Plot.plot({
// marks: [
// Plot.barY(data, {y: "y", x: "y", sort: {x: "y", reverse: true}})
// ]
// })
Plot.barX(y, {x: y, y:x, sort: {y: "x", reverse:true, limit: range},marginLeft: 100}).plot()
Insert cell
y = data.map(d => d.y)
Insert cell
x = data.map(d => d.x)
Insert cell
Plot.plot({
marks: [
Plot.barY(d2, {y: "y", x: "x", sort: {x: "y", reverse: true, limit: 12}})
]
})
Insert cell
viewof table = Inputs.table(d2, {})
Insert cell
Insert cell
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