Animating charts

Thread is closed for posting
2 posts, 0 answers
  1. Dan-Sorin
    Dan-Sorin avatar
    1 posts
    Member since:
    Aug 2015

    Posted 21 Apr 2016 Link to this post

    Hello guys,

    So, we are trying to animate a Telerik bar series chart such that the bars scale (grow from 0 to their y-axis value in like 1 second time). Based on Telerik suggestion here (, we have wrapped the bars into a custom border on which we actually do the animation. Basically, we animate the Y-axis of the border to scale from 0 to 1 in the given timespan and as it scales, the bars in the chart appear as animated (apparently, we had to do this in order to make the bars animate from bottom to top instead of the Telerik chart animating options, which make the bars grow from top to bottom).

    However, we are running into the following issue. We are starting the animation on border loaded event (which seemed to be the only event which would actually trigger the animation). This results in our chart getting animated everytime the view is reloaded. However, we want the animation to run only on the first load and eventually on reload with updated data (like actually new data from the server). Because we are using the Border.Loaded event, we cannot control when to trigger the start of the animation. Do you have any suggestions on how to trigger the chart animation on a custom event (something we can actually control ourselves) ?

    Thanks and curiously waiting for your reply,


  2. Ves
    Ves avatar
    2927 posts

    Posted 26 Apr 2016 Link to this post

    Hi Dan,

    It seems the problem is not directly related to the chart itself, but rather on the app flow. The requirement to start animation on first load and on data reload has to be managed by your own code and not by the chart. Whether this will be an event or a method call is your decision, still in both cases the it's a matter of application logic.

    Best regards,
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top