Platform
Resources
Pricing
Sign in
Get started
56fc95d9361213d8
Workspace
Fork
Public
By
56fc95d9361213d8
Edited
May 29, 2023
Insert cell
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
dot
(
cars
,
{
x
:
d
=>
d
[
"power (hp)"
]
/
d
[
"weight (lb)"
]
,
y
:
"economy (mpg)"
,
stroke
:
"cylinders"
,
r
:
"weight (lb)"
,
title
:
d
=>
d
[
"name"
]
+
", "
+
d
[
"cylinders"
]
}
)
]
,
color
:
{
domain
:
[
3
,
4
,
6
,
8
]
,
legend
:
true
}
}
)
Insert cell
tdf
Filter
Columns
Sort
1
Slice
Save
Type Table, then Shift-Enter. Ctrl-space for more options.
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
lineY
(
industries
,
{
x
:
"date"
,
y
:
"unemployed"
,
z
:
"industry"
,
title
:
"industry"
}
)
]
}
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
lineY
(
alphabet
,
{
x
:
"letter"
,
y
:
"frequency"
,
sort
:
{
x
:
"y"
,
reverse
:
true
}
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
lineY
(
laserStrikes
,
Plot
.
groupX
(
{
y
:
"count"
}
,
{
x
:
"year"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
import
{
Plot
}
from
"@mkfreeman/plot-tooltip"
Insert cell
import
{
tdf
}
from
"@observablehq/plot-line"
Insert cell
import
{
driving
}
from
"@observablehq/plot-line"
Insert cell
import
{
laserStrikesCleaned
as
laserStrikes
}
from
"@observablehq/excel-add-columns"
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
tdf
File attachments
Databases
Filter
Column
Operator
Columns
Sort
elevation
Descending
Descending
Ascending
Column
Direction
Descending
Ascending
Slice
From
Start
To
End
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
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML