From b9859a1e57f6e226332fa3144c19e6182492f31e Mon Sep 17 00:00:00 2001 From: Rutorai Date: Fri, 26 Feb 2021 07:58:23 +0100 Subject: [PATCH] The vertical position was based on index in sorted array. It must be done by stored order --- src/diagrams/gantt/ganttRenderer.js | 3 +++ 1 file changed, 3 insertions(+) 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) +