Platform
Resources
Pricing
Sign in
Get started
Simon Willison
Workspace
Fork
Published
By
Simon Willison
Edited
May 18, 2021
Fork of
Rect Mark / Observable Plot
1
Insert cell
Insert cell
diamonds
=
FileAttachment
(
"diamonds.csv"
)
.
csv
(
{
typed
:
true
}
)
Insert cell
viewof
thresholds
=
Inputs
.
range
(
[
0
,
100
]
,
{
step
:
1
}
)
Insert cell
Plot
.
plot
(
{
height
:
640
,
color
:
{
scheme
:
"bupu"
,
type
:
"symlog"
}
,
marks
:
[
Plot
.
rect
(
diamonds
,
Plot
.
bin
(
{
fill
:
"count"
}
,
{
x
:
"carat"
,
y
:
"price"
,
thresholds
:
thresholds
}
)
)
]
}
)
Insert cell
Object
.
keys
(
window
)
.
filter
(
(
k
,
v
)
=>
k
[
0
]
==
k
[
0
]
.
toUpperCase
(
)
)
Insert cell
htl
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
diamonds
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
thresholds
Add comment
Copy import
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