Public
Edited
Feb 13
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof mysize = Inputs.range([10, 500], { value: 30, step: 1 })
Insert cell
Insert cell
Insert cell
// h = new Hex(100, { x: 100, y: 100 })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// angleScale = d3.scaleLinear([0, 360], [-180, 180])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// angleScale = d3.scaleLinear([0, 360], [-180, 180])
Insert cell
// ISDtoRadius = (d) => d * 0.866
Insert cell
turf = require("@turf/turf")
Insert cell
// tp1 = turf.bboxPolygon([0, 0, 150, 250])
Insert cell
// tp2 = turf.lineToPolygon(turf.lineString(h.Corners(true)))
Insert cell
// bx = turf.bbox(tp2)
Insert cell
// pt = d3
// .range(0, 10)
// .map((d) =>
// turf.point([
// d3.randomUniform(bx[0], bx[2])(),
// d3.randomUniform(bx[1], bx[3])()
// ])
// )
Insert cell
// something = turf.intersect(tp1, tp2)
Insert cell
Insert cell
Insert cell
Insert cell
colorset = d3.scaleOrdinal(d3.schemeCategory10);
Insert cell
c=d3.interpolateRgbBasis(d3.schemeSpectral[3])

Insert cell
Insert cell
Insert cell
Insert cell
bs = area.GridArea(111, 111)
Insert cell
// turf.degrees2radians(1)
Insert cell
FACTOR = 0.45 * 0.03 * 0.2 * 0.75
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
xx=new Hex(100)
Insert cell
xx.Corners()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
var line = turf.lineString([
[115, -32],
[131, -22],
[143, -25],
[150, -34],
]);
return turf.length(line)
}
Insert cell
d3.range(10)
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