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
commit 0646b43144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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) +