Skip to content

Instantly share code, notes, and snippets.

@rbelew
rbelew / editHierNode.html
Created March 28, 2018 19:01
editHierNode: adding and editing nodes in d3.hierarchy
View editHierNode.html
<!DOCTYPE html>
<!-- https://bl.ocks.org/mbostock/1093025 -->
<meta charset="utf-8">
<style>
.node rect {
cursor: pointer;
fill: #fff;