Platform
Resources
Pricing
Sign in
Get started
Pete Jelliffe
Workspace
Fork
Published
By
Pete Jelliffe
Edited
Feb 17, 2021
1 fork
Insert cell
md
`# Testing 1.2.3.`
Insert cell
viewof
x
=
html
`<input type=range min=0 max=1 step=any>`
Insert cell
{
const
theta
=
d3
.
scaleLinear
(
)
.
domain
(
[
0
,
1
]
)
.
range
(
[
-
Math
.
PI
/
2
,
3
*
Math
.
PI
/
2
]
)
yield
`
x = ${
x
}
Theta(${
x
}) = ${
theta
(
x
)
}
`
}
Insert cell
md
`# Insert SVG from scratch`
Insert cell
{
const
svg
=
d3
.
create
(
"svg"
)
.
attr
(
"height"
,
200
)
.
attr
(
"width"
,
200
)
svg
.
append
(
"circle"
)
.
attr
(
"r"
,
50
)
.
attr
(
"stroke"
,
"black"
)
return
svg
.
node
(
)
}
Insert cell
d3
=
require
(
"d3@5"
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x
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
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML