We're using the setTimeout() function thats shown in the examples.
$(document).ready(
function
() {
setTimeout(
function
() {
createBarChart(
'#chart1'
);
createBarStackedChart(
'#chart2'
);
createPieChart(
'#chart3'
);
createBarChart(
'#chart4'
);
createBarStackedChart(
'#chart5'
);
createPieChart(
'#chart6'
);
createBarChart(
'#chart7'
);
createBarStackedChart(
'#chart8'
);
createPieChart(
'#chart9'
);
createBarChart(
'#chart10'
);
createBarStackedChart(
'#chart11'
);
createPieChart(
'#chart12'
);
//Initialize the chart with a delay to make sure
//the initial animation is visible
}, 400);
});
Any feedback would be appreciated.
Chris
17 Answers, 1 is accepted
The Chart does not provide means for controlling the initial animation duration. We'll correct this in future versions. Thank you for noticing.
We can make initial animations smoother by instantiating the charts with a slight delay. There is just so much that the browser can handle at once. I've prepared a jsFiddle for demonstration: http://jsfiddle.net/fuaxH/
As a token of gratitude for your involvement your Telerik points have been updated.
Regards,
Tsvetomir Tsonev
the Telerik team
Thanks!
No, we don't expose such properties yet. We'll bump their priority in our to-do list for the next planning session.
Apologies for the caused inconvenience.
Tsvetomir Tsonev
the Telerik team
Hello, there is also any plans to expose the animation type as well?
Let said that for us will be really useful a fade in/out animation in order to visualize small changes when changing the data due to a series of filters and selector for that chart.
To clarify my point, I attached to animated gif one with the current animation (kendo-current.gif) and other simulating a fade in/out animation (kendo-desired.gif).
Thanks for your support
The animation of Bar/Column series can be controlled through the undocumented animation options:
series: [{
data: [1, 2, 3],
animation: {
type: "fadeIn",
duration: 1000
}
}]
See it live here - http://jsbin.com/ozawox/edit#html,live
While we don't expect changes to these options we prefer to keep them unofficial until we provide consistent behavior for all series.
Tsvetomir Tsonev
the Telerik team
The "animation from current value" that you're looking for is not possible with the current version. This is something that we intend to implement soon.
Apologies for my faulty assumption that you're looking for a fade-in effect.
Tsvetomir Tsonev
the Telerik team
Thanks for the information. We will wait impatiently for this kind of animation to come in future releases, but in the meantime, do you have any documentation of the type of animation and other parameter that we can play with?
Regards
I'm unable to offer any further suggestions at that point. We'll need fully functional dynamic updates in order to provide smooth transitions.
Thank you for your patience.
Tsvetomir Tsonev
the Telerik team
Hi !
I know this post is quite old, but is there plans to implement animations "from current value" for all charts? We dynamically change the value of area, line and donut chart, but the fact that it restarts the animation from beginning make it look very bad :(.
No specific plans yet, but let's say we really like this feature and we have a rough idea on how to make it possible.
We'll tackle it as soon as time allows us to. Thank you for your patience.
Regards,
T. Tsonev
Telerik
I am afraid this functionality is not available in Kendo UI Chart yet. If you have a minute, you could cast a vote / leave a comment for it in this UserVoice item:
http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/suggestions/6933479-animate-sparkline-between-two-values-without-jumpi
Regards,
Iliana Nikolova
Telerik by Progress