Skip to content

Commit 1562d2f

Browse files
committed
Update README
1 parent 7f90fc8 commit 1562d2f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,30 @@ Plot.cellY(simpsons.map(d => d.imdb_rating))
982982
983983
Equivalent to [Plot.cell](#plotcelldata-options), except that if the **y** option is not specified, it defaults to [0, 1, 2, …], and if the **fill** option is not specified and **stroke** is not a channel, the fill defaults to the identity function and assumes that *data* = [*y₀*, *y₁*, *y₂*, …].
984984
985+
### Delaunay
986+
987+
Plot provides a handful of marks for Delaunay and Voronoi diagrams (using [d3-delaunay](https://github.com/d3/d3-delaunay) and [Delaunator](https://github.com/mapbox/delaunator)). These marks require the **x** and **y** channels to be specified.
988+
989+
#### Plot.delaunayLink(*data*, *options*)
990+
991+
[Source](./src/marks/delaunay.js) · Draws links for each edge of the Delaunay triangulation of the points given by the **x** and **y** channels.
992+
993+
#### Plot.delaunayMesh(*data*, *options*)
994+
995+
[Source](./src/marks/delaunay.js) · Draws a mesh of the Delaunay triangulation of the points given by the **x** and **y** channels.
996+
997+
#### Plot.hull(*data*, *options*)
998+
999+
[Source](./src/marks/delaunay.js) · Draws a convex hull around the points given by the **x** and **y** channels.
1000+
1001+
#### Plot.voronoi(*data*, *options*)
1002+
1003+
[Source](./src/marks/voronoi.js) · Draws polygons for each cell of the Voronoi tesselation of the points given by the **x** and **y** channels.
1004+
1005+
#### Plot.voronoiMesh(*data*, *options*)
1006+
1007+
[Source](./src/marks/voronoi.js) · Draws a mesh for the cell boundaries of the Voronoi tesselation of the points given by the **x** and **y** channels.
1008+
9851009
### Dot
9861010
9871011
[<img src="./img/dot.png" width="320" height="198" alt="a scatterplot">](https://observablehq.com/@observablehq/plot-dot)

0 commit comments

Comments
 (0)