2

I found this example (JSfiddle) to update a series.

$scope.chartConfig.series[0].data = rnd;

However the bars change instantly instead of smoothly when you click on the button 'Update Series'. Is it possible to have smooth transition effect of the bars like in this example (JSfiddle) while keeping AngularJS?

chart.series[0].data[0].update(i % 2 ? 200 : 0);

Kind regards, James.

James
  • 21
  • 1

1 Answers1

0

check this api http://api.highcharts.com/highcharts#plotOptions.series.animation

add animation to series object like, where duration in milliseconds

series: [{
        data: [10, 15, 12, 8, 7,10, 15, 12, 8, 7],
        animation: {
            duration: 1000
        }
    }]

http://jsfiddle.net/rSHN4/3/

Pavan Kumar Jorrigala
  • 3,085
  • 16
  • 27
  • It will not work, because highcharts-ng update upoints in different way (by update array) and using $watch. Animations are disabled. – Sebastian Bochan May 15 '15 at 09:25