I have a XamDataChart with IsTransitionInEnabled="True".
The data is repopulated every minute and the transition is reexecuted ("EaseIn" from 0 to its percent value). It is possible that data has updated since the last repopulation.
Rather than reexecuting the transition, is it possible to transition to new values? For example, one value is 30%. One minute later, that value is 35%. I would like to transition from 30% to 35% rather than reexecute the transition (from 0 to its value).
Hello Mastermind_Ed,
In order to transition the XamDataChart's series to new values from pre-existing ones, I would recommend setting the TransitionDuration property of your series. The IsTransitionInEnabled property will animate the series as it is created, but not so much when the value changes.
Note, that for this to work, you will need to update the current values. I add this, as I am unsure if you are re-binding the data source or not. If you rebind the data source when you do your updates, this creates a new set of points and will animate from 0 to its value, as these "new" points are part of a newly created series. If you wish to transition between pre-existing values, you will need to update the pre-existing values already bound to the chart.
I have attached a sample project to demonstrate the above. I hope this helps.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Well done, Andrew. Very concise. Thanks.
I am unable to reproduce this behavior as well, so I'll consider this resolved.
Thanks again, Andrew.
I have modified the sample project that I had originally sent you to change multiple values with larger changes, but I can't seem to reproduce this behavior that you are seeing. Would it be possible for you to please modify the sample project that I have attached to demonstrate this issue that you are seeing with the XamDataChart's transitions?
I have another question. I am using the TransitionDuration of 1 second.
However, the transition works when the change in percentages are small or if I change one value...but not when the change in percentages are large or if i change multiple values (it will just change to the new value). I have 4-5 values that can change at one time.
Any advice?
I am glad I was able to help you on this.