The vertical position was based on index in sorted array. It must be done by stored order

This commit is contained in:
Rutorai 2021-02-26 07:58:23 +01:00
parent ba3e0c4c35
commit b9859a1e57
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) +