-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@vx/axis ticklabelprops dy not working #267
Comments
Thanks for the bug report @maganuk! We replaced axis tick labels with For now, the workaround is to override your Axis <AxisLeft
// ...stuff
tickLabelProps={() => ({
dy: '-0.4em',
textAnchor: 'start'
})}
tickComponent={({ formattedValue, ...tickProps }) => (
<text {...tickProps}>{formattedValue}</text>
)}
/> |
I would be happy to come up with a PR for this. The calculation for |
@sto3psl based on a quick search that should work. Might be better to do this in userland and pass the pixel value to |
@techniq I agree. I think supporting |
This plan sounds good to me |
fixed by #271 |
After update to 0.0.159 or 0.0.160 from 0.0.158, setting the dy in ticklabelprops on the left or right axis doesnt seem to work.
tickLabelProps={() => ({ dy: '-0.4em', textAnchor: 'start' })}
The text was updated successfully, but these errors were encountered: