Public
Edited
May 21, 2024
1 fork
Insert cell
Insert cell
nba_stats = await FileAttachment("nba_stats.csv").csv({typed:true});
Insert cell
viewof season_select = Inputs.select(d3.group(nba_stats, d => d.SEASON), {sort: true, label: "NBA Teams"});
Insert cell
group_teams = d3.group(season_select, d=> d.TEAM_ABBREVIATION);
Insert cell
Plot.plot({
width,
height: 700,
grid: true,
inset: 10,
x: {label: "free throws attempts"},
y: {label: "free throws made"},
marks: [
Plot.dot(group_teams, {x: "FTA", y: "FTM", tip: true }),
Plot.ruleX([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