diff --git a/src/diagrams/gantt/ganttRenderer.js b/src/diagrams/gantt/ganttRenderer.js index 82e5634fc..5667ec69c 100644 --- a/src/diagrams/gantt/ganttRenderer.js +++ b/src/diagrams/gantt/ganttRenderer.js @@ -189,6 +189,9 @@ export const draw = function(text, id) { }) .attr('height', theBarHeight) .attr('transform-origin', function(d, i) { + // Ignore the incoming i value and use our order instead + i = d.order; + return ( ( timeScale(d.startTime) +