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
The VictoryLegend component appears to calculate its rect dimensions incorrectly. This causes layout issues where the legend overlaps the chart or is misaligned, especially in constrained or responsive containers.
Steps to reproduce
1.Create a chart using Victory components (e.g., VictoryPie or VictoryBar).
2.Add a VictoryLegend component and configure it with multiple items.
3.Render the chart inside a constrained container or a responsive layout.
4.Observe that the legend overlaps the chart or does not align correctly due to incorrect rect calculations.
Expected behavior
The rect calculation should accurately determine the space needed for the legend and ensure proper alignment.
Actual behavior
The rect calculation seems inaccurate, leading to overlapping or misaligned legends.
Environment
- Device: Desktop
- OS: Windows
- Browser: Google Chrome 131.0.6778.140
- Node: 22.11.0
- npm: 10.9.0
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Code of Conduct
Victory version
37.3.5
Code Sandbox link
https://codesandbox.io/p/sandbox/festive-banzai-8s9nh4?file=%2Findex.js%3A29%2C11-29%2C21
Bug report
Steps to reproduce
Expected behavior
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: