{"id":13445697,"url":"https://github.com/dk8996/Gantt-Chart","last_synced_at":"2025-03-21T05:31:01.618Z","repository":{"id":5899866,"uuid":"7118508","full_name":"dk8996/Gantt-Chart","owner":"dk8996","description":"Gantt chart library using D3.js.  ","archived":false,"fork":false,"pushed_at":"2017-08-05T05:27:01.000Z","size":223,"stargazers_count":398,"open_issues_count":20,"forks_count":202,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-20T03:45:01.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"Gantt chart library using D3.js.  ","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dk8996.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-11T20:08:12.000Z","updated_at":"2025-03-04T23:12:31.000Z","dependencies_parsed_at":"2022-09-09T16:51:29.237Z","dependency_job_id":null,"html_url":"https://github.com/dk8996/Gantt-Chart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dk8996%2FGantt-Chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dk8996%2FGantt-Chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dk8996%2FGantt-Chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dk8996%2FGantt-Chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dk8996","download_url":"https://codeload.github.com/dk8996/Gantt-Chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745681,"owners_count":20503044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T05:00:38.034Z","updated_at":"2025-03-21T05:31:01.289Z","avatar_url":"https://github.com/dk8996.png","language":"Java","funding_links":[],"categories":["Libraries","Charts"],"sub_categories":["Gantt"],"readme":"## Introduction\nA basic implementation of a Gantt Chart using D3.js. Here is an example [Example 1] (http://bl.ocks.org/dk8996/5534835) and another one [Example 2] (http://bl.ocks.org/dk8996/5449641).\n\n![screenshot](https://raw.github.com/dk8996/Gantt-Chart/master/examples/screenshot1.png)\n\n#### External Data Example\nHere is an [example] (http://static.mentful.com/d3ganttchart/example.html) of loading external data, in JSON format, into the Gantt Chart, you need to watch out for [cross-domain restrictions] (http://en.wikipedia.org/wiki/Same-origin_policy). \n\n## Getting Started\n### Data\nCreate an array of all your data.\n\n```javascript\nvar tasks = [\n\n{\n    \"startDate\": new Date(\"Sun Dec 09 01:36:45 EST 2012\"),\n    \"endDate\": new Date(\"Sun Dec 09 02:36:45 EST 2012\"),\n    \"taskName\": \"E Job\",\n    \"status\": \"FAILED\"\n},\n\n{\n    \"startDate\": new Date(\"Sun Dec 09 04:56:32 EST 2012\"),\n    \"endDate\": new Date(\"Sun Dec 09 06:35:47 EST 2012\"),\n    \"taskName\": \"A Job\",\n    \"status\": \"RUNNING\"\n}];\n\n```\n\n### Style\nCreate a map between task status and css class, this is optional.\n\n```javascript\nvar taskStatus = {\n    \"SUCCEEDED\": \"bar\",\n    \"FAILED\": \"bar-failed\",\n    \"RUNNING\": \"bar-running\",\n    \"KILLED\": \"bar-killed\"\n};\n```\n\n```css\n  .bar {\n      fill: #33b5e5;\n  }\n  \n  .bar-failed {\n    fill: #CC0000;\n  }\n\n  .bar-running {\n      fill: #669900;\n  }\n  \n  .bar-succeeded {\n    fill: #33b5e5;\n  }\n\n  .bar-killed {\n      fill: #ffbb33;\n  }\n```\n### Task Names\nCreate an array of task names, they will be display on they y-axis in the order given to the array.\n\n```javascript\nvar taskNames = [ \"D Job\", \"P Job\", \"E Job\", \"A Job\", \"N Job\" ];\n```\n\n### Create a Simple Gantt-Chart\nCreate a simple Gantt-Chart\n\n```javascript\nvar gantt = d3.gantt().taskTypes(taskNames).taskStatus(taskStatus);\ngantt(tasks);\n```\n\n## Dependencies \u0026 Building\nRelies on the fantastic [D3 visualization library](http://mbostock.github.com/d3/) to do lots of the heavy lifting for stacking and rendering to SVG.\n\n## License\n\n   Copyright 2012 Dimitry Kudryavtsev\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdk8996%2FGantt-Chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdk8996%2FGantt-Chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdk8996%2FGantt-Chart/lists"}