Public
Edited
Mar 25, 2023
Insert cell
Insert cell
olympians

Insert cell
Plot.plot({
marks: [
Plot.rectY(olympians, Plot.binX({y: "count"}, {x: "weight"})),
Plot.ruleY([0])
]
})
Insert cell
teams = FileAttachment("Teams.csv").csv()
Insert cell
R = teams.map(d => parseInt(d.R))
Insert cell
Insert cell
data = teams.map(d => parseInt(d.R) - parseInt(d.RA))
Insert cell
Plot.plot({
marks: [
Plot.rectY(data, Plot.binX({y: "count",filter:null},{thresholds:10,cumulative:false,fill:"steelblue",stroke:"black",inset:2})),
Plot.ruleY([0])
]
})
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