-
Notifications
You must be signed in to change notification settings - Fork 525
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
Add a containerRef
prop for those who need a reference to the rendered chart
#781
Comments
I expect this change to be released in main victory this week, but not in victory-native until some time next week. |
@boygirl Thank you so much! |
released in |
Thank you. I have not tried it yet but I assume this should work with the new containerRef exposed:
|
Any update on this? |
Old issue but this was almost all I found on the issue of trying to export as an image. I did not get the suggestion above to work, but here is another solution that is working:
The usage of the component:
|
Supports exporting to pdf etc.
Implementation:
A prop on
VictoryContainer
(and all the containers that extend it) calledcontainerRef
takes a function. The ref will be applied to the outermost element that Victory renders.Usage:
The text was updated successfully, but these errors were encountered: