A jupyter notebook for D3
✓ Published0🌍 Public
PPhilippe Rivière
Last edited Jun 21, 2017
Created on Jan 25, 2017
This example demonstrates how to run D3 code inside an IJavascript notebook using `jsdom` as a virtual DOM environment. It builds a Voronoi diagram from randomly generated points, then computes and draws the Urquhart graph, which removes the longest edge from each Delaunay triangle. The visualization renders as SVG, with the notebook exporting the resulting HTML into the cell output. The code uses `d3.voronoi()`, `d3.map()`, and `d3.extent()` to construct the diagram and graph.
AI-generated descriptionA jupyter notebook for D3
We use jsdom to provide a playground for D3’s select().enter().append() pattern.
mit Licensed