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
When trying to generate a CustomSVGSeries, I get the error written in the title. This only happens when animation is enabled. Also, if animation is enabled and I don't specify a customComponent function, it works properly.
I investigated the cause of it, and it seems that in the Animation component the customComponent field in the interpolated data object is turned into an object (instead of being a function as it is in the child.props.data).
You've highlighted a problem we have unfortunately seen before (#579 among other places). Generally I'm working on a long term solution to address these interpolation issues, however I've also filed a PR (#600) that will allow you to specify your customComponent function at the root level (directly on the series rather on the datum). This should address the problem in letter, but not in spirit i think!
Thank you for the very quick response. I also forgot to mention the props validation for the root level custom component, thanks for picking that one up as well. I will be waiting for the PR to be merged. 👍
When trying to generate a CustomSVGSeries, I get the error written in the title. This only happens when animation is enabled. Also, if animation is enabled and I don't specify a customComponent function, it works properly.
I investigated the cause of it, and it seems that in the Animation component the customComponent field in the interpolated data object is turned into an object (instead of being a function as it is in the child.props.data).
My code:
react version: 15.6.1
react-vis version: 1.7.2
The text was updated successfully, but these errors were encountered: