Skip to main content
100%

Hexagonal Binning

✓ Published0🌍 Public
Mmbostock
Last edited Mar 9, 2019
Created on Apr 21, 2016

This example demonstrates hexagonal binning, aggregating 10,000 randomly generated points from `d3.randomNormal` into a grid of hexagons using the `d3-hexbin` plugin for D3 4.0. Each hexagon’s fill color reflects the local point density via a sequential `d3.scaleSequential` with the `d3.interpolateMagma` color scheme. The SVG rendering includes white hexagon strokes for visual separation, plus top and left axes built with `d3.axisTop` and `d3.axisLeft` on identity scales.

AI-generated description

A demonstration of the d3-hexbin plugin for D3 4.0.

gpl-3.0 Licensed

Similar vizzes