Public
Edited
Feb 13, 2023
Insert cell
Insert cell
Plot.plot({
height: 640,
axis: null,
x: { domain: [-250, 250] },
y: { domain: [-50, 450] },
color: {
type: "log",
range: ["steelblue", "orange"],
legend: true,
interpolate: "hcl",
label: "Made shots"
},
marks: [
Plot.rect(
shots,
Plot.bin(
{ fill: "count" },
{
x: "loc_x",
y: "loc_y",
filter: (d) => +d.shot_made_flag,
inset: 0,
interval: 5
}
)),
markings()
]
})
Insert cell
Insert cell
shots = FileAttachment("lebron_shots.csv").csv()
Insert cell
Inputs.table(shots)
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