Published
Edited
Jan 11, 2020
2 forks
Importers
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
input_data = {
let {Polygon, point} = Flatten;
let polygon1 = new Polygon([point(200,10), point(100, 300), point(400, 150), point(250, 10)]);
let polygon2 = new Polygon([point(450, 10), point(0, 150), point(300,300), point(600, 300)]);
return [polygon1, polygon2]
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
BooleanOp = require("@flatten-js/boolean-op")
Insert cell
Flatten = require("@flatten-js/core")
Insert cell
d3 = require("d3@5")
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more