Function: hexagonPath()
hexagonPath(
r):string
Defined in: packages/sdvplot/src/bins/hexbin.ts:95
An SVG path for a hexagon of circumradius r centred on the current point, byte-identical to d3-hexbin's
hexbin.hexagon(r): selection.attr("transform", translate(cx, cy)).attr("d", hexagonPath(r)).
Parameters
r
number
Returns
string
Example
import { hexagonPath } from "@sportsdataverse/sdvplot/bins";
hexagonPath(10);