Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts.js: how can stacked area graph animations be smooth?

I'm trying to make a realtime-updating stacked area graph in Highcharts.js. The problem is that the "area" of the graph disappears during .addPoint() animation.

I'm trying to achieve this effect: http://jsfiddle.net/DgKKX/5/

...But when I try it for area graphs, this happens: http://jsfiddle.net/DgKKX/6/

Anyone got a clue on how to make the "area" animate as well?

like image 232
Rico Sta. Cruz Avatar asked Nov 14 '22 16:11

Rico Sta. Cruz


1 Answers

Try duration and easing options of animation property similar to jsfiddle.net/DgKKX/5

Maybe you could also change area to 'areaspline' so that graph will be smooth

like image 152
Sivakumar Avatar answered Jan 12 '23 03:01

Sivakumar