Platform
Resources
Pricing
Sign in
Get started
Templates /
Interactive SVG
Sign up to use template
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Published
2 collections
Edited
Feb 1, 2022
ISC
188 forks
9 stars
Templates: Boilerplates
Plot Scatterplot
Plot: Histogram
Plot U.S. Map
Plot World Map
Simple D3
D3 scatterplot
D3 U.S. map
D3 world map
Simple SVG
Interactive SVG
Simple HTML Canvas
Interactive HTML Canvas
Processing (p5.js)
WebGL Shader
Blog Post
Regl
Three.js
Also listed in…
Templates
Insert cell
Insert cell
viewof
boxWidth
=
Inputs
.
range
(
[
0
,
1
]
,
{
label
:
"Box width"
}
)
Insert cell
<
svg
width
=
${width}
height
=
${height}
>
<
rect
width
=
${width}
height
=
${height}
fill
=
"hsl(216deg 20% 90%)"
/>
<
rect
width
=
${boxWidth
* width} height=${height} fill="hsl(216deg 100% 13%)"/>
</svg>
Insert cell
height
=
200
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
Listed in...
Templates: Boilerplates
Observable
Templates
Observable
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
boxWidth
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML