Platform
Resources
Pricing
Sign in
Get started
Trang Vu
A software product designer with passion for data storytelling
Workspace
Fork
Public
By
Trang Vu
Edited
May 16, 2024
ISC
Fork of
Interactive SVG
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
Compare fork
Fork
View
Export
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