Skip to content

Instantly share code, notes, and snippets.

View beekimrj's full-sized avatar

Biki Maharjan beekimrj

View GitHub Profile
@beekimrj
beekimrj / tree-diagram-with-d3js.html
Last active November 19, 2019 03:17
It makes tree hierarchy using rectangle as a node and we can assign different color in each node. this video is made watching tutorial from https://www.youtube.com/watch?v=1DUv_OS59Uc
<html>
<head>
<title> Rectangle </title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
rect
{
fill:white;
stroke: green;
@beekimrj
beekimrj / index.html
Last active November 18, 2019 09:41
this is modified version of https://gist.github.com/beekimrj/2e71997bfbfe564ef76cad20e013b32b . Add child according to need and select color
<html>
<head>
<title> Rectangle </title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="index.js"></script>
<style>
rect {
fill: white;
stroke: green;