d3/d3-voronoi — explained in plain English
Analysis updated 2026-07-25 · repo last pushed 2019-10-01
Make small data points on a scatterplot easier to hover over or click by giving each a larger surrounding area.
Position labels on a chart or map so they do not overlap.
Find the nearest data point to any spot a user clicks.
Determine which points in a dataset are neighbors of each other.
| d3/d3-voronoi | jaimeisme/comfystudio | nodejs/postject | |
|---|---|---|---|
| Stars | 250 | 251 | 247 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2019-10-01 | — | 2024-12-21 |
| Maintenance | Dormant | — | Stale |
| Setup difficulty | easy | hard | moderate |
| Complexity | 2/5 | 4/5 | 3/5 |
| Audience | developer | designer | developer |
Figures from each repo's GitHub metadata at analysis time.
Note that this library is deprecated, the authors recommend using the newer d3-delaunay replacement instead.
D3-voronoi is a JavaScript library that takes a set of points on a flat surface and divides that surface into regions, so that every spot in a given region is closest to the point it belongs to. This division is called a Voronoi diagram. If you have ever seen a map that looks like it is cracked into irregular shapes, where each shape centers on a city or data point, that is what this tool creates. Behind the scenes, the library uses a classic algorithm by Steven J. Fortune to draw the boundaries between these regions. You give it a list of coordinates, and it hands back the polygon shapes, the lines between them, or a related structure called a Delaunay triangulation, which is a mesh of triangles connecting nearby points. You can also ask it to find the nearest point to any spot you click. People building interactive charts and maps use this to make small data points easier to hover over or click. For example, The New York Times used it in a baseball visualization so that even tiny dots on a scatterplot had a large, easy-to-hit surrounding area. It is also handy for positioning labels so they do not overlap, or for figuring out which points are neighbors of each other. One notable thing about this project is that it is deprecated. The authors recommend a newer, faster, and more robust replacement called d3-delaunay. That said, this older library still works and offers a straightforward set of tools for anyone who needs to reason about the space between points.
A JavaScript library that divides a surface into regions around given points, creating Voronoi diagrams and Delaunay triangulations for data visualization. It is deprecated in favor of d3-delaunay.
Mainly JavaScript. The stack also includes JavaScript.
Dormant — no commits in 2+ years (last push 2019-10-01).
The license is not specified in the repository explanation.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.