Platform
Resources
Pricing
Sign in
Get started
Mike Freeman
Data visualization software enginner: working to make visualization more accessible, equitable, and impactful.
Workspace
Fork
Published unlisted
By
Mike Freeman
Edited
May 26, 2021
2
Insert cell
Insert cell
Insert cell
// Can't see these rects!
Plot
.
rectY
(
data
,
Plot
.
binX
(
{
y
:
"count"
}
,
{
x
:
"Attendees"
,
y
:
"count"
}
)
)
.
plot
(
)
Insert cell
Plot
.
rectY
(
data
,
Plot
.
binX
(
{
y
:
"count"
}
,
{
x
:
"Attendees"
,
y
:
"count"
,
inset
:
0
}
)
)
.
plot
(
{
y
:
{
transform
:
d
=>
d
/
1000
,
label
:
"↑ Count (thousands)"
}
}
)
Insert cell
Plot
.
rectY
(
data
,
Plot
.
binX
(
{
y
:
"count"
}
,
{
x
:
"Attendees"
,
y
:
"count"
,
thresholds
:
200
}
)
)
.
plot
(
{
y
:
{
transform
:
d
=>
d
/
1000
,
label
:
"↑ Count (thousands)"
}
}
)
Insert cell
d3
.
thresholdScott
(
data
.
map
(
d
=>
d
.
Attendees
)
,
...
d3
.
extent
(
data
,
d
=>
d
.
Attendees
)
)
Insert cell
Insert cell
1
Plot
.
rectY
(
data
,
Plot
.
binX
(
{
y
:
"count"
}
,
{
x
:
"Attendees"
,
y
:
"count"
}
)
)
.
plot
(
{
x
:
{
type
:
"log"
}
}
)
Insert cell
Insert cell
2
FileAttachment
(
"ggplot_example.png"
)
.
image
(
)
Insert cell
data
=
FileAttachment
(
"protests (1).csv"
)
.
csv
(
{
typed
:
true
}
)
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
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
Show 1 comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Show 2 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML