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
Describe the bug VictoryLabels with a background can't receive a function in their dy prop. The background component receives NaN as y instead of the correct position.
Expected behavior
The label's background and text are correctly positioned.
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Version: 120
Additional context
The bug happens here because of this. originalDy is treated as a number, but in this case it is a function and should be normalized by Helpers.evaluateProp().
The text was updated successfully, but these errors were encountered:
Describe the bug
VictoryLabel
s with a background can't receive a function in theirdy
prop. The background component receivesNaN
asy
instead of the correct position.Victory version
[email protected]
Code Sandbox link
Sandbox
To Reproduce
Steps to reproduce the behavior:
VictoryLabel
to a chart componentbackgroundStyle
propdy
prop to a functionExpected behavior
The label's background and text are correctly positioned.
Desktop (please complete the following information):
Additional context
The bug happens here because of this.
originalDy
is treated as a number, but in this case it is a function and should be normalized byHelpers.evaluateProp()
.The text was updated successfully, but these errors were encountered: