# custom-calendar-gantt

> gantt chart with calendar view with customizable fields

Latest version **1.0.10** (published 2022-10-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install custom-calendar-gantt
pnpm add custom-calendar-gantt
yarn add custom-calendar-gantt
bun add custom-calendar-gantt
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2022-10-12 |
| First published | 2022-10-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 66.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Srinith Reddy Gujula |
| Maintainers | srinith962 |
| Keywords | gantt chart, customizable gantt, gantt calendar, gantt, calendar gantt |

## Links

- npm: https://www.npmjs.com/package/custom-calendar-gantt
- Repository: https://github.com/srinithreddyg/custom-calendar-gantt
- Homepage: https://github.com/srinithreddyg/custom-calendar-gantt#readme
- Issues: https://github.com/srinithreddyg/custom-calendar-gantt/issues
- npm.io page: https://npm.io/package/custom-calendar-gantt

## Dependencies (4)

- [dayjs](https://npm.io/package/dayjs.md) ^1.11.5
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.12.4
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^4.11.3
- [use-resize-observer](https://npm.io/package/use-resize-observer.md) ^9.0.2

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2022-10-12
- 1.0.9 — 2022-10-11
- 1.0.8 — 2022-10-11
- 1.0.7 — 2022-10-11
- 1.0.6 — 2022-10-11
- 1.0.5 — 2022-10-11
- 1.0.4 — 2022-10-11
- 1.0.3 — 2022-10-11
- 1.0.2 — 2022-10-11
- 1.0.1 — 2022-10-11
- 1.0.0 — 2022-10-11

## README

**Maintained by Srinith Reddy Gujula, Github handle: srinithreddyg**

Simple gantt chart package with customizable fields and tooltip.

**How to use:/n**
create an array of tasks which contain data in the following format, one can also pass a react fragment as tooltip.

```
const tasks: Task[] = [
      {
        startDate: '2022-11-10',
        endDate: '2022-12-10',
        color: '#1878BD',
        tableColumns: [ "Task 1", "Task Name", "Task Details"],
        tooltip: 
          <React.Fragment>
            <b>{'Payment status: Done'}</b>
            <div>{'Task 1'}</div>
            <div>{'Task Name'}</div>
            <div>{`Start Date: ${dayjs('2022-11-10').format('MM-DD-YYYY')}`}</div>
            <div>{`End Date: ${dayjs('2022-12-10').format('MM-DD-YYYY')}`}</div>
          </React.Fragment>
        
      },
      {
        startDate: '2022-09-01',
        endDate: '2022-11-15',
        color: '#FB9A1D',
        tableColumns: [ "Task 2", "Task Name 2", "Task Details 2"],
        tooltip: 
          <>
            <b>{'Payment status: Pending'}</b>
            <div>{'Task 2'}</div>
            <div>{'Task Name 2'}</div>
            <div>{`Start Date: ${dayjs('2022-09-01').format('MM-DD-YYYY')}`}</div>
            <div>{`End Date: ${dayjs('2022-11-15').format('MM-DD-YYYY')}`}</div>
          </>
      }
    ]
```

**Component takes following fields as props:**
- **tasks: Tasks[]** // *table columns contains the columns that one wants to display to the left of calendar view* 
- **cellsPerMonth: number** // *number of cells per month*
- **numOfMonthsDisplayed: number** //*number of months displayed*

```
<GanttChart tasks={tasks} cellsPerMonth={4} numOfMonthsDisplayed={6} tableHeader={'Gantt Chart'}/>
```

![Image](Screenshot_1.png)

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