# @lumeer/frappe-gantt-lumeer

> A simple, modern, interactive gantt library for the web

Latest version **0.4.7** (published 2019-06-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @lumeer/frappe-gantt-lumeer
pnpm add @lumeer/frappe-gantt-lumeer
yarn add @lumeer/frappe-gantt-lumeer
bun add @lumeer/frappe-gantt-lumeer
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.7 |
| Published | 2019-06-23 |
| First published | 2019-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 838.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Faris Ansari |
| Maintainers | kubedo8, livthomas, marvec |
| Keywords | gantt, svg, simple gantt, project timeline, interactive gantt, project management |

## Links

- npm: https://www.npmjs.com/package/@lumeer/frappe-gantt-lumeer
- Repository: https://github.com/Lumeer/frappe-gantt-lumeer
- Issues: https://github.com/Lumeer/frappe-gantt-lumeer/issues
- npm.io page: https://npm.io/package/@lumeer/frappe-gantt-lumeer

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.24.0

## Recent versions

- 0.4.7 (latest) — 2019-06-23
- 0.4.6 — 2019-06-23
- 0.4.5 — 2019-06-21
- 0.4.4 — 2019-06-09
- 0.4.3 — 2019-05-17
- 0.4.2 — 2019-05-07
- 0.4.1 — 2019-05-06
- 0.4.0 — 2019-05-04
- 0.3.0 — 2019-02-10

## README

<div align="center">
    <img src="https://github.com/frappe/design/blob/master/logos/gantt-logo.svg" height="128">
    <h2>Frappe Gantt</h2>
    <p align="center">
        <p>A simple, interactive, modern gantt chart library for the web</p>
        <a href="https://frappe.github.io/gantt">
            <b>View the demo »</b>
        </a>
    </p>
</div>

<p align="center">
    <a href="https://frappe.github.io/gantt">
        <img src="https://cloud.githubusercontent.com/assets/9355208/21537921/4a38b194-cdbd-11e6-8110-e0da19678a6d.png">
    </a>
</p>

### Install
```
npm install frappe-gantt
```

### Usage
Include it in your HTML:
```
<script src="frappe-gantt.min.js"></script>
<link rel="stylesheet" href="frappe-gantt.css">
```

And start hacking:
```js
var tasks = [
  {
    id: 'Task 1',
    name: 'Redesign website',
    start: '2019-12-28',
    end: '2019-12-31',
    progress: 20,
    dependencies: 'Task 2, Task 3',
    custom_class: 'bar-milestone', // optional
    swimlane: 'Steps',
    sub_swimlane: '1. Step',
    start_drag: false, //cannot change start date
    end_drag: true, //cannot change end date
	to_show_in_popup: "new-progress:My Custom Progress Text:progress" //custom class:custom text:name of task property to show
  },
  {
    id: 'Task 2',
    name: 'Write new content',
	start: '2019-10-03',
	end: '2019-10-06',
    progress: 20,
    dependencies: 'Task 3',
    editable: false, //cannot change any value (interactively)
    swimlane: 'Steps',
    sub_swimlane: '2. Step',
  },
  {
    id: 'Task 3',
    name: 'Deploy',
	start: '2019-10-04',
	end: '2019-10-06',
    progress: 5,
    dependencies: 'Task 4',
    primary_color: 'green',
    text_color: '#3399ff',
    swimlane: 'Final Stage',
  },
  {
    id: 'Task 4',
    name: 'Go Live',
	start: '2019-10-11',
	end: '2019-10-11',
    progress: 0,
    secondary_color: 'rgb(255, 51, 204)',
  },
  {
    name: 'Minimum',
	start: '2019-10-12',
	end: '2019-10-12',
  },
  ...
]
var gantt = new Gantt("#gantt", tasks);
```

You can also pass various options to the Gantt constructor:
```js
var gantt = new Gantt("#gantt", tasks, {
    header_height: 50,
    column_width: 30,
    step: 24,
    view_modes: ['Quarter Day', 'Half Day', 'Day', 'Week', 'Month'],
    bar_height: 20,
    bar_corner_radius: 3,
    arrow_curve: 5,
    padding: 18,
    view_mode: 'Day',   
    date_format: 'YYYY-MM-DD',
    custom_popup_html: null
});
```

If you want to contribute:

1. Clone this repo.
2. `cd` into project directory
3. `yarn`
4. `yarn run dev`

License: MIT

------------------
Project forked from [frappe](https://github.com/frappe) and maintained by [Lumeer](https://github.com/Lumeer)

---
_Source: https://npm.io/package/@lumeer/frappe-gantt-lumeer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
