Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Can I transition from one value to another rather than 0 to its value?
posted

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).

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    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,
    Andrew
    Associate Developer

    XamDataChartTransitionsCase.zip
Children