mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
The vertical position was based on index in sorted array. It must be done by stored order
This commit is contained in:
@@ -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) +
|
||||||
|
Reference in New Issue
Block a user