Platform
Resources
Pricing
Sign in
Get started
amandadawley
Workspace
Fork
Public
By
amandadawley
Edited
May 21, 2024
1 fork
1
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nba_stats
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
season_select
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
group_teams
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML