All Projects → nextbitlabs → gantt-chart

nextbitlabs / gantt-chart

Licence: MIT license
Web component implementation of a Gantt chart.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gantt-chart

smart-gantt-chart
Gantt Web Component
Stars: ✭ 15 (-37.5%)
Mutual labels:  gantt-chart, gantt
Plugin Gantt
Gantt charts for Kanboard
Stars: ✭ 73 (+204.17%)
Mutual labels:  gantt-chart, gantt
Gantt
GPL version of Javascript Gantt Chart
Stars: ✭ 653 (+2620.83%)
Mutual labels:  gantt-chart, gantt
gantt-task-react
Gantt chart for React with Typescript
Stars: ✭ 426 (+1675%)
Mutual labels:  gantt-chart, gantt
Jquery Gantt
🌈 Lightweight jQuery gantt plugin.
Stars: ✭ 193 (+704.17%)
Mutual labels:  gantt-chart, gantt
Zmjganttchart
Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
Stars: ✭ 301 (+1154.17%)
Mutual labels:  gantt-chart, gantt
React Google Charts
A thin, typed, React wrapper over Google Charts Visualization and Charts API.
Stars: ✭ 944 (+3833.33%)
Mutual labels:  gantt-chart, gantt
ganttchart
The Winforms Gantt Chart is the .NET Winforms control originally hosted on CodePlex (http://ganttchart.codeplex.com)
Stars: ✭ 150 (+525%)
Mutual labels:  gantt-chart, gantt
Vue Gantt Chart
使用Vue做数据控制的Gantt图表
Stars: ✭ 182 (+658.33%)
Mutual labels:  gantt-chart, gantt
React Gantt
A gantt chart for react
Stars: ✭ 129 (+437.5%)
Mutual labels:  gantt-chart, gantt
ganttlab
A live Gantt chart for GitLab and GitHub
Stars: ✭ 30 (+25%)
Mutual labels:  gantt-chart, gantt
Wl Gantt
wl-gantt:一个简单易用且高度可配置的甘特图进度计划项目管理插件。An easy-to-use gantt plug-in for the vue framework.
Stars: ✭ 231 (+862.5%)
Mutual labels:  gantt-chart, gantt
stacked-gantt
JQuery Gantt-like chart with stacked activities/tasks, providing conciser information.
Stars: ✭ 19 (-20.83%)
Mutual labels:  gantt-chart, gantt
Openproject
OpenProject is the leading open source project management software.
Stars: ✭ 5,337 (+22137.5%)
Mutual labels:  gantt-chart, gantt
vue-frappe-gantt-demo
No description or website provided.
Stars: ✭ 24 (+0%)
Mutual labels:  gantt-chart, gantt
Gantt Elastic
Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]
Stars: ✭ 869 (+3520.83%)
Mutual labels:  gantt-chart, gantt
jz-gantt
An easy-to-use Gantt component. 持续更新,中文文档
Stars: ✭ 87 (+262.5%)
Mutual labels:  gantt-chart, gantt
Angular Gantt
Gantt chart component for AngularJS
Stars: ✭ 1,407 (+5762.5%)
Mutual labels:  gantt-chart, gantt
Gantt
Open Source Javascript Gantt
Stars: ✭ 2,634 (+10875%)
Mutual labels:  gantt-chart, gantt
Gantt For React
🌿 Frappe Gantt components for React wrapper. 一个简单的甘特图 React 组件封装。
Stars: ✭ 250 (+941.67%)
Mutual labels:  gantt-chart, gantt

<gantt-chart>

Latest Release Published on webcomponents.org

Web component implementation of a Gantt chart.

Data model

{
  milestones: [
    {
      id: 1,
      taskId: 6, // Graphical hint, it may be latest task in the milestone.
      title: 'Milestone A',
      date: 'July 2019', // Optional.
      additionalVerticalShift: 1 // Optional.
    },
    ...
  ],
  tasks: [
    {
      id: 1,
      title: 'task 1',
      start: 0, // Week number.
      duration: 4, // Duration in weeks.
      class: 'c1',
      progress: // Optional, defaults to 0.
    },
    ...
  ]
}

Exposed attributes

  • width: chart width in pixels
  • height: chart height in pixels

Margins attributes help to ensure task and milestone titles are visible.

  • margin-top: space in pixel between the top border and the first task.
  • margin-bottom: space in pixel between the bottom border and the last task.
  • margin-left: space in pixel between the left border and the first task.
  • margin-right: space in pixel between the right border and the last task.

See section Usage for an example.

Exposed CSS Custom Properties

  • --font-family defaults to sans-serif
  • --font-size defaults to 12px
  • --background-color defaults to white
  • --visibility-ticks defaults to visible, set to hidden to hide the week ticks

Up to 10 classes can be passed:

  • --c1, the task color defaults to purple
  • --c2, the task color defaults to blue
  • --c3, the task color defaults to gold

See section Usage for an example.

Usage

In an html file

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <script type="module">
      import 'https://unpkg.com/@nextbitlabs/[email protected]/dist/gantt-chart.umd.js';
    </script>
  </head>
  <style>
    @import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');
    /*
      CSS custom properties penetrate the Shadow DOM,
      they are useful to provide custom styling.
      The gantt-chart webcomponent exposes font-size and font-family custom properties.
    */
    gantt-chart {
      --font-family: 'Lato', sans-serif;
      --c1: lightblue;
    }
  </style>
  <body>
    <!-- Set component attributes -->
    <gantt-chart
      width="1150"
      height="700"
      margin-top="40"
      margin-left="40"
      margin-right="40"
      margin-bottom="40"
    ></gantt-chart>
  </body>
  <script>
    const element = document.querySelector('gantt-chart');

    // Set gantt data: tasks and milestones.
    element.data = {
      milestones: [
        {
          id: 1,
          taskId: 1,
          title: 'Milestone A'
        },
      ],
      tasks: [
        {
          id: 1,
          title: 'task 1',
          start: 0,
          duration: 4,
          class: 'c1',
          progress: 0.65
        },
      ]
    };
  </script>
</html>

With npm:

npm i @nextbitlabs/gantt-chart

See demo.

Development

Install dependencies with

npm install

Update build on changes with

npm run dev

and see updates on ./demo/index.html running a local server from ./.

Release

npm run release

License

This project is licensed under the MIT License. See the license file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].