Rob Williams

All generations.

generate functionSat, 12 Nov 2022

Gantt chart

var events = [ {start: 30, end: 150}, {start: 540, end: 600}, {start: 560, end: 620}, {start: 610, end: 670} ]; var gantt = d3.gantt().taskTypes(["Task A", "Task B", "Task C"]).taskStatus(["Completed"]).tickFormat([""]); gantt(events);

Javascript
View
generate functionSat, 12 Nov 2022

Gantt chart scheduling app

function getScheduleFromGantt(gantt) { const tasks = {} const edges = [] for (const {name, start, end, children} of gantt) { tasks[name] = {start, end} for (const child of children) { edges.push([name, child]) } } return tasks, edges }

Javascript
View

Questions about programming?Chat with your personal AI assistant