-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 update #189
Comments
This is actually a feature that I thought about already, and planning to implement. Create a function that takes dataset A, dataset B, and a phase value between
Now you should animate a simple number from You can also use the animation util in Charts, that can animate a number for you already, including easing and stuff. So it's pretty much a peach of cake, and as soon as I can I'm planning on adding this to the library. But at least you have a solution for the meanwhile ;-) |
Hi! Is it feature already implemented? |
I need to animate adding new value to data set and changing position of limit line. |
Hi, I'm trying to apply the animation of data change in a pie chart. I already have the function you've mentioned but am struggling to find a way to "animate a simple number from 0 to 1". Any thoughts on this? Thanks! |
Hello! The feature is already implemented? |
Adding my support for this feature, and also looking for a good way to interpolate a simple value according to some easing function (for the workaround). All the animation libraries seem to operate on views or properties, but I just want to "animate" the value of a simple number. Feels like it should be simple, maybe I'm looking in the wrong places? |
You might want to have a look at the post below where I've shared my solution. I'm aware that it is far from perfect but it seems to be working, which is nice. http://stackoverflow.com/questions/34730917/animating-a-double-from-0-to-1-in-swift-over-a-specified-interval/34774113#34774113 |
Thanks for the quick reply @apiejh, really appreciate it. I managed to get this working with a timer function. Hacky, but works! At least until a better approach is available. |
Any updates or possible solutions for this ? |
+1, I have a chart with data and when some asynchronous process completes I would like to add either one or more new datasets and/or extend a dataset's datapoints (e.g. live data). It would be much more eye-pleasing if the chart would be able to animate those new datasets instead of rebuilding from scratch. |
@kevinjtchen just put a PR out for this #2889 |
"You can also use the animation util in Charts, that can animate a number for you already, including easing and stuff." I don't see any option to animate a single data-set only the whole chart. Am I missing something? |
It's been over two years, does anyone know how to implement this? |
Is this ever going to be implemented? I would love to be able to do something as simple as
|
Just clear the array of old values and fill it with the new ones before calling again the setupChart() |
It is 2019 already and is there a solution for animate data changes without redrawing the whole chart from scratch? 🙂 |
It's been over four years now, something tells me we're never going to get this :( |
not sure why the PR #2889 is closed, but for those that still want some quick code snippets for danielgindis implementation: https://github.com/mrjko/testCharts/blob/master/chartsTest/BarChartViewController/BarChartViewController.swift |
Does anyone know a way to do this for lineChart, I have to change dot position smoothly without redraw the whole chart. |
@vittorionapoli You can use the same as @mrjko posted above, but replace it with LineChartDataSet
@mrjko How the above method will work for an array of yValues for Stacked Bar Chart? |
Updating the presented solution with
|
@Skornos , @SSenocico How to do this in a pie chart? |
Hi!
Is there a way to update LineChartView data (ChartData) and redraw LineChartView animated from current position.
Like in appFigures application.
Thanks.
The text was updated successfully, but these errors were encountered: