Platform
Resources
Pricing
Sign in
Get started
Vinícius Mello
Workspace
Fork
Public
By
Vinícius Mello
Edited
Dec 1, 2023
Insert cell
#
Teste SVG
Insert cell
SVG
=
require
(
"svgjs"
)
Insert cell
{
const
s
=
svg
`<svg width="400" height="400">`
;
let
draw
=
SVG
(
s
)
;
draw
.
rect
(
40
,
40
)
;
var
polygon
=
draw
.
polygon
(
"50,0 60,40 100,50 60,60 50,100 40,60 0,50 40,40"
)
;
polygon
.
fill
(
"#f06"
)
.
move
(
20
,
20
)
;
return
s
;
}
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
SVG
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML