-
Notifications
You must be signed in to change notification settings - Fork 835
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
Animated Sunburst can not take SVG Pattern #1015
Comments
Here is the snippet of my code:
Version: 1.11.3 |
Hm, I won't be able to debug your code without knowing what
It might be worth looking into the Sunburst code and how an react-vis/src/sunburst/index.js Lines 176 to 184 in 05cc2b3
|
Hi Wattengerger Please try with this:
It works when I update the data, but when I click the page, it turns to black. Cheers |
Let's do it this way - I approximated your setup in this pen. If you can replicate your issue, I'd be happy to look into it more |
Thanks Wattengerger! That's a quite good point. I modified the code to try to replicate the problem, but it looks well for me now. I'll dig into it tomorrow and let you know the results! |
I think I found out the reason why it does not work with animation: instead of get The function of SVG pattern generation looks like this:
It work well on static Sunburst because the value we get from My pattern ID generation function did not recognize the changes and keep treating the color as hex code, and the SVG with that ID does not exist, that is why the second ring in the animated sunburst turns to black. Hopefully this helps. Regards |
After updating my id generation logic. the animation works well!
Just a suggestion, should we make it more clear in the documentation that when use animation, the color representation changed? Kind Regards References: |
Hi all
Similar to this #721 , when I tried to applied the SVG pattern to the Sunburst, it shows the black box like the following:
However, when I remove
animation
from Sunburst, it works perfectly!Just wondering if this is caused by the animated Sunburst? I think I met a similar issue for the animated bar chart as well.
The text was updated successfully, but these errors were encountered: