Merge pull request #1911 from Rutorai/bug/1651_milestone_incorrect_vertical_position

The vertical position was wrongly based on index in sorted array.
This commit is contained in:
Knut Sveidqvist
2021-02-27 12:52:30 +01:00
committed by GitHub

View File

@@ -189,6 +189,9 @@ export const draw = function(text, id) {
}) })
.attr('height', theBarHeight) .attr('height', theBarHeight)
.attr('transform-origin', function(d, i) { .attr('transform-origin', function(d, i) {
// Ignore the incoming i value and use our order instead
i = d.order;
return ( return (
( (
timeScale(d.startTime) + timeScale(d.startTime) +