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.