artbelikov / angular2-tree-diagram

Angular Hierarchical UI module
MIT License
74 stars 41 forks source link
angular angular2 angular6 angular7 angular8 angular9 hierarchical hierarchical-data hierarchical-diagram hierarchy tree tree-structure typescript

Angular tree diagram

About

This is Angular 2+ Hierarchical UI module.

Preview

Demo

On gh-pages

Features

Installation

npm i angular2-tree-diagram

Usage

Example

<tree-diagram [data]="data"></tree-diagram>
...
data = {
  json: [
    {
      "guid": "bc4c7a02-5379-4046-92be-12c67af4295a",
      "displayName": "Elentrix",
      "children": [
        "85d412c2-ebc1-4d56-96c9-7da433ac9bb2",
        "28aac445-83b1-464d-9695-a4157dab6eac"
      ]
    },
    ...
  ],
  config: {
    nodeWidth: 200,
    nodeHeight: 100
  }
}