You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
floating bars incorrectly offset by stacked base value #12197
Floating bars should be rendered at their absolute y coordinates regardless of the stacked configuration. Since a floating bar already encodes both its start and end position explicitly, it should not be offset by the cumulative stack value of other datasets.
Current behavior
When using floating bars (y: [start, end]) with stacked: true on a linear axis, some datasets are not rendered at all when multiple datasets share the same x value. This happens because the stacked base offset calculated by applyStack is incorrectly added to the absolute coordinates of the floating bar, pushing affected bars outside the visible scale range.
Add a floatingBarMode option at the dataset level to distinguish between absolute and relative positioning of floating bars.
'absolute': the floating bar is rendered at its exact [start, end] coordinates, ignoring any stacked offset. 'relative': the floating bar is offset by the cumulative stack value of preceding datasets, preserving the current behavior.
To avoid a breaking change, floatingBarMode could default to 'relative' to preserve existing behavior.
Activity