# react-jsgantt **Repository Path**: dingmike/react-jsgantt ## Basic Information - **Project Name**: react-jsgantt - **Description**: React gantt component wrapper for jsgantt-improved - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-09-26 - **Last Updated**: 2024-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-jsgantt > React JS Gantt [![NPM](https://img.shields.io/npm/v/react-jsgantt.svg)](https://www.npmjs.com/package/react-jsgantt) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![Demo Image](/example/demo.gif) ## Install ```bash npm install --save react-jsgantt ``` ## Usage ```tsx import * as React from 'react' import JSGantt from 'react-jsgantt' class Example extends React.Component { constructor(props){ super(props); this.data = [{ 'pID': 1, 'pName': 'Define Chart API v2', 'pStart': '', 'pEnd': '', 'pClass': 'ggroupblack', 'pLink': '', 'pMile': 0, 'pRes': 'Brian', 'pComp': 0, 'pGroup': 1, 'pParent': 0, 'pOpen': 1, 'pDepend': '', 'pCaption': '', 'pNotes': 'Some Notes text' }]; this.editorOptions = { vCaptionType: 'Complete', // Set to Show Caption : None,Caption,Resource,Duration,Complete, vQuarterColWidth: 36, vDateTaskDisplayFormat: 'day dd month yyyy', // Shown in tool tip box vDayMajorDateDisplayFormat: 'mon yyyy - Week ww', // Set format to display dates in the "Major" header of the "Day" view vWeekMinorDateDisplayFormat: 'dd mon' }] } render () { return ( ) } } ``` ## Developer Guide Fork this project and following the instructions below: ```sh npm install cd example npm install ``` to run the demo npm start in the root folder, and npm start in the example folder the site will be at: localhost:3000 ## License MIT © [mariohmol](https://github.com/mariohmol)