Platform
Resources
Pricing
Sign in
Get started
Matthew Clemens
Try, fail, learn, improve. Then repeat.
Workspace
Fork
Public
By
Matthew Clemens
Edited
Mar 29, 2023
Fork of
Input + Chart
1
Insert cell
Insert cell
Insert cell
maxD
=
d3
.
max
(
d
,
(
x
)
=>
x
.
d
)
Insert cell
maxC
=
d3
.
max
(
d
,
(
x
)
=>
x
.
c
)
Insert cell
viewof
hypoT
=
Inputs
.
range
(
[
0
,
maxC
]
,
{
step
:
1
,
label
:
"C"
}
)
Insert cell
viewof
hypoY
=
Inputs
.
range
(
[
0
,
maxD
]
,
{
step
:
1
,
label
:
"Y"
}
)
Insert cell
Plot
.
plot
(
{
y
:
{
grid
:
true
}
,
marks
:
[
Plot
.
areaY
(
d
,
{
x
:
"c"
,
y2
:
maxD
,
y1
:
"w"
,
fill
:
"#E85C4A"
,
opacity
:
0.5
}
)
,
Plot
.
areaY
(
d
,
{
x
:
"c"
,
y1
:
"w"
,
y2
:
"d"
,
fill
:
"#FFCF70"
,
opacity
:
0.5
}
)
,
// Plot.areaY(d, {x: "c", y: "w", fill: "#06C167", opacity: 0.5}),
// Plot.ruleX([hypoT]), Plot.ruleY([hypoY]),
Plot
.
dot
(
[
[
hypoT
,
hypoY
]
]
,
{
r
:
5
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
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
d
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maxD
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maxC
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
hypoT
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
hypoY
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML