Public
Edited
Mar 3, 2023
Insert cell
Insert cell
Insert cell
g = require("https://cdn.rawgit.com/nodebox/g.js/master/dist/g.min.js")
Insert cell
{
var r = g.star({x: 0, y: 0}, 5, 100, 40);
return g.toPoints(r);
}
Insert cell
{
const size = 250
const svg = d3.create('svg')
.attr('height', size)
.attr('width', size)

var r = svg.append('path')
.attr('id', 'test_path')
.attr('fill', 'none')
.attr('stroke-width', 20)
.attr('stroke', 'black')
.attr('d', test_path)
return g.toPoints(r);
}
Insert cell
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