Published
Edited
Sep 21, 2021
2 stars
Insert cell
Insert cell
Insert cell
html`

<svg height="210" width="500" id="my-svg">
<polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"/>
Sorry, your browser does not support inline SVG.
</svg>
`
Insert cell
Vivus = require('vivus@0.4.6/dist/vivus.js')
Insert cell
{
new Vivus('my-svg', {duration: 500}, myCallback);
}
Insert cell
myCallback = () => {
// something here
}
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.
Learn more