Gantt Chart
Gantt chart library using jsx support SVG, Canvas and SSR
Install
$ npm install gantt --save
Usage
; const data = id: 1 type: 'group' text: '1 Waterfall model' start: '2018-10-10T09:24:24.319Z' end: '2018-12-12T09:32:51.245Z' percent: 071 links: id: 11 parent: 1 text: '1.1 Requirements' start: '2018-10-21T09:24:24.319Z' end: '2018-11-22T01:01:08.938Z' percent: 029 links: target: 12 type: 'FS' id: 12 parent: 1 text: '1.2 Design' start: '2018-11-05T09:24:24.319Z' end: '2018-12-12T09:32:51.245Z' percent: 078; '#svg-root' data viewMode: 'week'; '#canvas-root' data viewMode: 'week'; const strGantt = data viewMode: 'week';thisbody = strGantt;
Options
// View mode: day/week/month viewMode: 'week' {} offsetY: 60 rowHeight: 40 barHeight: 16 thickWidth: 14 styleOptions: bgColor: '#fff' lineColor: '#eee' redLineColor: '#f04134' groupBack: '#3db9d3' groupFront: '#299cb4' taskBack: '#65c16f' taskFront: '#46ad51' milestone: '#d33daf' warning: '#faad14' danger: '#f5222d' link: '#ffa011' textColor: '#222' lightTextColor: '#999' lineWidth: '1px' thickLineWidth: '1.4px' fontSize: '14px' smallFontSize: '12px' fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'
Report a issue
License
Gantt is available under the terms of the MIT License.