Provide a better support of the animations
Currently animations lack good API. They are missing following things:
- the parameters of the animation (either duration/mode or the react-motion parameters);
- event listeners such as
onAnimationStartoronAnimationEnd.
Also the makeWidthFlexible function should probably turn animation off on the first initialization (it causes the "slide" animation for the entire chart)
issues:
- [X] the parameters of the animation
- [ ] event listeners
- [x] Also the makeWidthFlexible function should probably turn animation off on the first initialization
we're going to deprecate make...Flexible. so the only thing we need is event listeners.
@jckr do you know when makeWidthFlexible will be deprecated? And once it is deprecated, what would be the best approach for getting this kind of responsive functionality? Should I make my own resize event listener and re-render, or will there be a formal react-vis solution?
I'm currently using FlexibleWidthXYPlot and I'm wondering how it will look in future.
Thanks!