Vue gantt

Vue component for display Gantt Diagramm

Version: 1.0.3 Updated: 02/05/2018

By: tynopet License: MIT

Downloads Last 30 Days: 55

Install

npm i vue-gantt
yarn add vue-gantt

Repository: https://github.com/tynopet/vue-gantt

CDNs

bundle.run: https://bundle.run/vue-gantt

jsDelivr: https://cdn.jsdelivr.net/npm/vue-gantt

unpkg: https://unpkg.com/vue-gantt

Build status

vue-gantt

Vue component for display Gantt Diagramm

Build Setup

npm install vue-gantt

Live demo

Usage:

import Gantt from 'vue-gantt';

const vm = new Vue({
  ...
  tepmplate: '<gantt :data="data"></gantt>',
  components: { 'gantt': Gantt },
  ...
 });

Props structure:

{
  "rows": [],
  "legendHelp": 'Help'
}

Rows is a array of objects:

{
  "name": "task Name",
  "link": "#0",
  "values": []
}

Values is a array of objects:

{
  "desc": "Description",
  "from": start date in ms,
  "to": end date in ms,
  "color": "hex value"
}

Example:

{
  "rows": [
    {
      "name": "Step 1",
      "link": "#0",
      "values": [
        {
          "desc": "Step 1",
          "from": 1334837045000,
          "to": 1334837183000,
          "color": "#D0E4FD"
        }
      ]
    },
    {
      "name": "Step 2",
      "link": "#0",
      "values": [
        {
          "desc": "Step 2 is overdue",
          "from": 1334923578000,
          "to": 1334929209000,
          "color": "#F9C4E1"
        },
        {
          "desc": "Step 2",
          "from": 1334837183000,
          "to": 1334923578000,
          "color": "#D0E4FD"
        }
      ]
    }
  ],
  "legendHelp": "Help"
}

Contributors



tynopet
commits
Categories: Vue js
Tags: