Gantt Chart

A Gantt chart is a type of bar chart that illustrates a project schedule. This chart lists the tasks to be performed on the vertical axis, and time intervals on the horizontal axis. The width of the horizontal bars in the graph shows the duration of each activity. Gantt charts illustrate the start and finish dates of the terminal elements and summary elements of a project. Terminal elements and summary elements constitute the work breakdown structure of the project. Modern Gantt charts also show the dependency (i.e., precedence network) relationships between activities.

Example Color Themes

Example Fonts

Show Code


<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="" type="text/css"/>
<script src=""></script>

<!-- Create a canvas element for the chart with the desired dimensions -->
  <canvas id="canvasId" width="600" height="600"</canvas>

<!-- Create a script to initialize the chart -->

  <!-- Create the data for the graph -->
  var data = {
     "y" : {
        "data" : [
        "smps" : ["S01","S02","S03","S04","S05","S06"],
        "vars" : ["Start","End"]
  <-- Create the configuration for the graph -->
  var config = {

  <!-- Call the CanvasXpress function to create the graph -->
  var cX = new CanvasXpress("canvasId", data, config);

y=read.table("", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)