Platform
Resources
Pricing
Sign in
Get started
Julien Barnier
Trying to do things.
Workspace
Fork
Public
By
Julien Barnier
Edited
Aug 28, 2024
ISC
Fork of
Plot Scatterplot
1 star
2
Insert cell
Insert cell
Insert cell
data
=
{
let
data_orig
=
await
FileAttachment
(
"penguins.csv"
)
.
csv
(
{
typed
:
true
}
)
;
return
data_orig
.
filter
(
(
d
)
=>
!
isNaN
(
d
.
body_mass_g
)
)
.
map
(
(
d
)
=>
{
d
.
body_mass_g_bigint
=
BigInt
(
d
.
body_mass_g
)
;
return
d
;
}
)
;
}
Insert cell
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
dot
(
data
,
Plot
.
normalizeY
(
{
x
:
"flipper_length_mm"
,
y
:
"body_mass_g"
,
z
:
"island"
,
basis
:
"mean"
}
)
)
]
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
dot
(
data
,
Plot
.
normalizeY
(
{
x
:
"flipper_length_mm"
,
y
:
"body_mass_g_bigint"
,
z
:
"island"
,
basis
:
"mean"
}
)
)
]
}
)
Insert cell
Plot
=
require
(
await
FileAttachment
(
"plot.umd.min.js"
)
.
url
(
)
)
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Plot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML