-
Notifications
You must be signed in to change notification settings - Fork 50
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
Animate plugin #35
Comments
@iddan you need to add a state or a parameter for your component to store the previously changed newData, then pass the previous changed data to dataProvider in amchart config. and pass the latest newData to chart.animateData(newData, { duration: 1000 }); |
Storing chart's data in a component state is obvious. The thing is unless I use |
@RahavLussato You are genuinely amazing. |
@iddan thanks. |
Would you mind refactor @RahavLussato? |
@iddan done, changed to |
@iddan I'm sorry for the delay. I plan to make some changes to the animate plugin which will allow for a declarative API. In the meantime, you can use the solution created by @RahavLussato, or alternatively you can use the
|
@Pauan yeah I figured out but it will be good to have an official declarative API. I'll be looking up for it |
When working with React we don't update data manually but pass it through the props.
Is there a way to activate animated updates? like:
Maybe an
animated
prop can suit this case?The text was updated successfully, but these errors were encountered: