Skip to content

Better documentation needed to get d3-delaunay started #3525

Answered by curran
lautiamkok asked this question in Q&A
Discussion options

You must be logged in to vote

I completely understand the frustrations expressed.

This question inspired me to port that particular example to vanilla JavaScript. Here it is:

https://vizhub.com/curran/61c8d66918994602bc80dbbcda46217c

<!DOCTYPE html>
<html>
  <head>
    <title>Voronoi Edges</title>
    <style>
      body {
        margin: 0;
        overflow: hidden;
      }
    </style>
    <!-- Pull in D3 via UNPKG CDN. -->
    <script src="https://unpkg.com/d3@7.0.1/dist/d3.min.js"></script>
  </head>
  <body>
    <script>
      // Unpack the d3 global from <script> tag.
      const { select, Delaunay } = d3;

      // Number of points.
      const n = 1500;

      // Extract the current dimensions of the browser wi…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mbostock
Comment options

@curran
Comment options

Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3524 on August 07, 2021 20:07.