Public
Edited
Apr 26, 2023
Insert cell
Insert cell
hg = new HexGrid(100, 5, 5, { x: 0, y: 0, sectorOffset: 30 })
Insert cell
import { HexGrid, CreateSVGTemplate } from "@wiless/drawutils"
Insert cell
cells = hg.GridArea(300, 300)
Insert cell
Plot.plot({
grid: true,
marks: [, Plot.dot(cells, { x: "x", y: "y" }), drawMe([100])]
})
Insert cell
function drawMe(data){
}
Insert cell
Insert cell
base = hg.getBaseHex()
Insert cell
nodes = hg.GridArea(400, 400)
Insert cell
hg.GridPoints()
Insert cell
base.Corners()
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