Platform
Resources
Pricing
Sign in
Contact us
Ian Johnson
pixel flipper, data sifter. trying to see what I can while I'm here
Workspace
Fork
Published
Plot
By
Ian Johnson
Edited
May 11, 2021
2 forks
37 stars
Plot
Emotion Tree
Simpson's data
Simplex Stacks
Plotting Popular Programming Languages
TopN
CCRB Plot Explorations
TSA Throughput
Plot Spot: Debugging Transformations
Insert cell
Insert cell
Insert cell
Plot
.
areaY
(
data
,
Plot
.
stackY
(
{
x
:
"i"
,
y
:
"value"
,
fill
:
"j"
,
offset
:
"silhouette"
}
)
)
.
plot
(
{
width
,
color
:
{
scheme
:
"pubu"
,
reverse
:
true
}
}
)
Insert cell
Insert cell
data
=
d3
.
range
(
300
)
.
flatMap
(
i
=>
{
return
d3
.
range
(
series
)
.
map
(
j
=>
{
let
x
=
i
*
xres
let
y
=
j
*
yres
return
{
i
,
j
,
x
,
y
,
value
:
1
+
simplex
.
noise3D
(
x
,
y
,
z
)
// add 1 just to avoid negative values
}
}
)
}
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot
.
cell
(
data
,
{
x
:
"i"
,
y
:
"j"
,
fill
:
"value"
}
)
.
plot
(
{
width
,
height
:
300
,
color
:
{
scheme
:
"ylorrd"
}
,
x
:
{
axis
:
false
}
,
y
:
{
label
:
null
}
}
)
Insert cell
Insert cell
Plot
.
cell
(
data
,
Plot
.
binX
(
{
fill
:
"mean"
}
,
{
x
:
"i"
,
y
:
"j"
,
fill
:
"value"
,
thresholds
:
50
}
)
)
.
plot
(
{
width
,
height
:
300
,
color
:
{
scheme
:
"ylorrd"
}
,
x
:
{
axis
:
false
}
,
y
:
{
label
:
null
}
}
)
Insert cell
Insert cell
Insert cell
Plot
.
lineY
(
data
,
{
x
:
"i"
,
y
:
"value"
,
stroke
:
"j"
}
)
.
plot
(
{
width
,
color
:
{
scheme
:
"pubu"
,
reverse
:
true
}
}
)
Insert cell
Insert cell
Insert cell
Plot
.
lineY
(
data
,
{
x
:
"i"
,
y
:
"value"
,
stroke
:
"j"
}
)
.
plot
(
{
facet
:
{
data
,
y
:
"j"
}
,
width
,
height
:
600
,
y
:
{
axis
:
false
}
,
fy
:
{
label
:
null
}
,
color
:
{
scheme
:
"pubu"
,
reverse
:
true
}
}
)
Insert cell
Insert cell
simplex
=
new
SimplexNoise
(
)
Insert cell
SimplexNoise
=
require
(
'simplex-noise@2.4'
)
Insert cell
Plot
=
require
(
"@observablehq/plot@0.1"
)
Insert cell
Inputs
=
require
(
"@observablehq/inputs@0.7"
)
Insert cell
d3
=
require
(
"d3@6"
)
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
z
Edit
Add comment
Copy import
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
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xres
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yres
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
series
Edit
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
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
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
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
simplex
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
SimplexNoise
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Plot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Inputs
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML