Gantt Chart with dates

Gannt chart is a variation on <a href="https://www.amcharts.com/demos/3d-bar-chart/">Bar chart</a> commonly used to visualize project schedule. Each bar represents a task in the schedule with its start and end locations corresponding to the date/time of the item's beginning and end.

by amcharts

HTML

<script src="https://www.amcharts.com/lib/4/core.js"></script>
<script src="https://www.amcharts.com/lib/4/charts.js"></script>
<script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
<div id="chartdiv"></div>

CSS

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#chartdiv {
  width: 100%;
  height: 500px;
}

JavaScript

/**
 * ---------------------------------------
 * This demo was created using amCharts 4.
 * 
 * For more information visit:
 * https://www.amcharts.com/
 * 
 * Documentation is available at:
 * https://www.amcharts.com/docs/v4/
 * ---------------------------------------
 */

// Themes begin
am4core.useTheme(am4themes_animated);
// Themes end

var chart = am4core.create("chartdiv", am4charts.XYChart);
chart.hiddenState.properties.opacity = 0; // this creates initial fade-in

chart.paddingRight = 30;
chart.dateFormatter.inputDateFormat = "yyyy-MM-dd HH:mm";

var colorSet = new am4core.ColorSet();
colorSet.saturation = 0.4;

chart.data = [ {
  "category": "Module #1",
  "categoryDesc": "ModuleDesc #1",
  "start": "2016-01-01",
  "end": "2016-01-14",
  "color": colorSet.getIndex(0).brighten(0),
  "task": "Gathering requirements"
}, {
  "category": "Module #1",
  "categoryDesc": "ModuleDesc #1",
  "start": "2016-01-16",
  "end": "2016-01-27",
  "color": colorSet.getIndex(0).brighten(0.4),
  "task": "Producing specifications"
}, {
  "category": "Module #1",
  "categoryDesc": "ModuleDesc #1",
  "start": "2016-02-05",
  "end": "2016-04-18",
  "color": colorSet.getIndex(0).brighten(0.8),
  "task": "Development"
}, {
  "category": "Module #1",
  "categoryDesc": "ModuleDesc #1",
  "start": "2016-04-18",
  "end": "2016-04-30",
  "color": colorSet.getIndex(0).brighten(1.2),
  "task": "Testing and QA"
}, {
  "category": "Module #2",
  "categoryDesc": "ModuleDesc #2 is a bit longer than #1",
  "start": "2016-01-08",
  "end": "2016-01-10",
  "color": colorSet.getIndex(2).brighten(0),
  "task": "Gathering requirements"
}, {
  "category": "Module #2",
  "categoryDesc": "ModuleDesc #2 is a bit longer than #1",
  "start": "2016-01-12",
  "end": "2016-01-15",
  "color": colorSet.getIndex(2).brighten(0.4),
  "task": "Producing specifications"
}, {
  "category": "Module #2",
  "categoryDesc": "ModuleDesc #2 is a bit longer than #1",
  "start": "2016-01-16",
  "end": "2016-02-05",
 ...