Platform
Resources
Pricing
Sign in
Get started
Jeremy Teitelbaum
I am a Professor of Mathematics at the University of Connecticut.
Workspace
Fork
Published
By
Jeremy Teitelbaum
Edited
Jun 15, 2020
1 star
Insert cell
Insert cell
Insert cell
Insert cell
html
`<div style="display: flex; font-family: helvetica">
<div style="flex-basis:50%">${
dual
} </div>
<div style="flex-basis:50%;">${
viewof
graph
}</div>
</div>`
Insert cell
Insert cell
d3
.
line
(
)
(
d3
.
polygonHull
(
plusPoints
.
map
(
d
=>
[
x
(
d
.
x
)
,
y
(
d
.
y
)
]
)
)
)
Insert cell
Insert cell
Insert cell
points
=
[
new
Pt
(
1
,
1
,
1
)
,
new
Pt
(
-
.5
,
2
,
1
)
,
new
Pt
(
1.5
,
3
,
1
)
,
new
Pt
(
1.5
,
2
,
1
)
,
new
Pt
(
1
,
-
2
,
-
1
)
,
new
Pt
(
-
1
,
-
.5
,
-
1
)
,
new
Pt
(
-
1
,
.5
,
-
1
)
,
new
Pt
(
0
,
0
,
-
1
)
]
Insert cell
plusPoints
=
points
.
filter
(
d
=>
d
.
z
==
1
)
Insert cell
minusPoints
=
points
.
filter
(
d
=>
d
.
z
==
-
1
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
x
=
d3
.
scaleLinear
(
)
.
domain
(
[
gp
.
x_min
,
gp
.
x_max
]
)
.
range
(
[
gp
.
margin
,
gp
.
width
-
gp
.
margin
]
)
Insert cell
y
=
d3
.
scaleLinear
(
)
.
domain
(
[
gp
.
y_min
,
gp
.
y_max
]
)
.
range
(
[
gp
.
height
-
gp
.
margin
,
gp
.
margin
]
)
Insert cell
y_axis
=
d3
.
axisLeft
(
y
)
.
ticks
(
gp
.
height
/
gp
.
y_ticks
)
Insert cell
x_axis
=
d3
.
axisBottom
(
x
)
.
ticks
(
gp
.
width
/
gp
.
x_ticks
)
Insert cell
html
`<style>
h1 {
font-family: helvetica;
}
p {
font-family: arial;
}
</style>
`
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
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
graph
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
dual
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
gp
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
points
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
plusPoints
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
minusPoints
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
hyperplanes
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Pt
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
svg
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cs
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
y
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
y_axis
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x_axis
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML