Platform
Resources
Pricing
Sign in
Get started
Tom MacWright
hi!
Workspace
Fork
Published
By
Tom MacWright
Edited
Aug 19, 2020
1 fork
Insert cell
Insert cell
chart
=
vl
(
{
data
:
{
values
:
publishes
}
,
mark
:
"bar"
,
width
,
autosize
:
"fit"
,
encoding
:
{
x
:
{
timeUnit
:
"yearmonth"
,
field
:
"date"
}
,
y
:
{
aggregate
:
"count"
,
type
:
"quantitative"
}
}
}
)
Insert cell
archive
=
d3
.
html
(
"https://macwright.org"
)
Insert cell
publishes
=
[
...
archive
.
querySelectorAll
(
".writing > time"
)
]
.
map
(
elem
=>
(
{
date
:
new
Date
(
elem
.
innerText
)
}
)
)
Insert cell
Insert cell
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
chart
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
archive
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
publishes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
vl
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML