Closed amromusharaf closed 8 months ago
I think what I'm getting is related. I could reproduce it in a Victory documentation snippet.
Before upgrading to the latest version the Y axis used to show up on the right of the chart. Just like it is when it's not a child of a VictoryChart
component.
Unable to reproduce in latest version. Please reopen if the issue persists.
Bugs and Questions
Checklist
[x] I have read through the FAQ and Guides before asking a question
[x] I am using the latest version of Victory
[x] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
Hi team 👋 Love the work you've been doing with Victory; I am a huge fan! I've come across what I believe might be a bug, and am hoping for a helping hand:
When creating a grouped Bar chart, and using
singleQuadrantDomainPadding
, theY
axis seems to break, and appears to load within the chart space itself. Is this something of which you're already aware, maybe?Reproduction
Please find a reproduction of the issue here: https://codesandbox.io/s/intelligent-feistel-xflfm?file=/src/App.js:424-451
Notice how
orientation
is set toright
on theVictoryAxis
, but is not being applied.If you remove
singleQuadrantDomainPadding
prop, the issue no longer presents. In my case, it is needed to avoid the bars overlapping the left edge, howeverMy current workaround is to pass a custom
VictoryLabel
component intoVictoryAxis
, and apply some offset (dx
) manually to it.