8000 GitHub - necolo/d3-mindmap: generate mindmap from json
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

necolo/d3-mindmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3-mindmap

A JavaScript library for generating mind maps using D3.js.

Installation

To install d3-mindmap, use the following command:

npm i d3-mindmap

Usage

import getRender from 'd3-mindmap';

const data = {
  "name": "Root",
  "children": [
    {
      "name": "Child 1",
      "children": [
        {"name": "Grandchild 1"},
        {"name": "Grandchild 2"}
      ]
    },
    {
      "name": "Child 2",
      "children": [
        {"name": "Grandchild 3"},
        {"name": "Grandchild 4"}
      ]
    }
  ]
};

getRender(document.body)(data);

Checkout a live demo of d3-mindmap here

License

d3-mindmap is licensed under the MIT License.

About

generate mindmap from json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0