A Vue2 Component To Display Tree Chart Library

Vue tree chart is a vue2 component for displaying a tree charts diagram.

javascript tree, tree chart jquery, tree chart drawing, javascript tree library, javascript library for drawing tree diagrams, tree view chart, vue tree list, vue org tree example

How to make use of it:

Install and download:

# NPM
$ npm install vue-tree-chart --save

1. Import and register the tree chart component.

import TreeChart from "vue-tree-chart";
export default {
  components: {
    TreeChart
  },
}

2. Add the component to the template and define your tree data as follows:

<TreeChart :json="treeData" />
export default {
  components: {
    TreeChart
  },
  data() {
    return {
      treeData: {
         {
          name: 'root',
          image_url: "avat.jpg",
          class: ["rootNode"],
          children: [
            {
              name: 'children1',
              image_url: "1.jpg"
            },
            {
              name: 'children2',
              image_url: "2.jpg",
              mate: [{
                name: 'mate',
                image_url: "3.jpg"
              }],
              children: [
                {
                  name: 'grandchild',
                  image_url: ".jpg"
                },
                {
                  name: 'grandchild2',
                  image_url: "1.jpg"
                },
                {
                  name: 'grandchild3',
                  image_url: "2.jpg"
                }
              ]
            },
            {
              name: 'children3',
              image_url: ".jpg"
            }
          ]
        }
      }
    }
  }
}

Tree Chart Component, vue tree chart Plugin/Github, vue tree menu, chart js tree, dynamic tree diagram, tree chart landscape vue


See Demo And Download

Official Website(tower1229): Click Here

This superior jQuery/javascript plugin is developed by tower1229. For extra Advanced Usages, please go to the official website.

Related Posts

Vector-Graphs-smartGraph

Generating Beautiful Vector Graphs With jQuery | smartGraph

SmartGraph is a free and easy-to-use JavaScript library to create beautiful vector diagrams with many customizations. This plugin allows developers to create dynamic, responsive, draggable vector graphics…

vue-image-slider-transition

Image Slider With 20 Cool Transitions Component | vue-flux

Vue flux is an image slider developed with Vuejs 2 that comes with 20+ nice transitions out of the box. Included transitions 2D transitions Fade: Fades from…

simple-parallax-scrolling

Simple background Image Parallax Scroll Plugin In jQuery

Background parallax effect is a simple jQuery background image without any library. Uses jQuery’s scroll() function to track the scroll event and applies the exact parallax scroll…

bootstrap-color-picker-plugin

Modular Color Picker Plugin for Bootstrap | BS Colorpicker

Bootstrap Colorpicker is a standard color picker plugin for Bootstrap 4. Colorpicker Plugin for Bootstrap 5/4/3 frameworks that allow you to add a color picker to an…

gdpr-iframe-manager-js

GDPR Friendly iFrame Manager In Vanilla JS | iframemanager

IframeMananger is a lightweight JavaScript plug-in that helps you to comply with GDPR by completely removing iframes at first and setting a notice related to that service….

diagonal-slider-anime-js

Diagonal Thumbnails Carousel Slider | Anime.js

Diagonal Slider is a cool mini carousel made with Anime.js JavaScript library. It takes a bunch of pictures and turns them into a circular user interface where…