Skip to content

Instantly share code, notes, and snippets.

@varun-raj
Last active November 17, 2019 07:54
Show Gist options
  • Save varun-raj/ae54d8064f27ec0a9cbf4e4aceb9a2ea to your computer and use it in GitHub Desktop.
Save varun-raj/ae54d8064f27ec0a9cbf4e4aceb9a2ea to your computer and use it in GitHub Desktop.
Gantt Chart Demo
var config = {
data: data, // Your actuall data
element: "#Chart", // The element for rendering the chart
box_padding: 10, // Padding for the blocks
metrics: {type: "sprint", year: 2017, cycles: cycles}, // Type of gantt
onClick: function(data) {
console.log(data); // Onclick of each node
},
onEmptyButtonClick: function() {
console.log("Empty Clicked");
},
onAreaClick: function(location) {
console.log("Clicked On" + location);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment