Skip to content

bradand/gannt-d3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gannt-d3

Build Gannt charts with custom json and D3 v4

Output

Alt text

Usage

General input format

{
    "Category":"Cat3", //give one or many events a cetegory name
    "Start_Date": "2022-04-01", //starting date in YYYY-mm-dd format
    "End_Date": "2022-06-01", //ending date in YYYY-mm-dd format
    "Long": "Ignored event, long", //long description (current not used)
    "Name":"Ignored event", //name displayed on left
    "id": 3, //give each event a unique id
    "prog": 0, //designate the progress bar to fill each event
    "dep": "1,2,3", //reference dependancy of other event id's in csv format
    "ignore":1, //optionally ignore the event, options 0=no,1=yes
    "fill":"#0C53D9" //optional fill color, references legned below
},

Special dates, optional

{
    "_type":"keydate",
    "Date":"2021-09-15",
    "Name":"Special Date 1"
},

Legend, optional

{
    "_type":"legend", //do not change
    "#967008":"Type1", //reference event types above by "fill" property
    "#F98B88":"Type2",
    "#0C53D9":"Type3"
},

Run

Host script locally (exmaple on macOS w/php)

php -S localhost:8080

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published