score:-1

edit: in light of question edits this answer is not relevant.

i'm not sure if i fully understand your question, but i was having a problem with the scaling animation in angular-charts and the solution i found while checking the code behind the examples on the angular-chart site (http://jtblin.github.io/angular-chart.js/examples/app.js) was to set animation duration to 0 in the options. in angular, using angular-charts this can be done in the controller using the chart-options directive as seen in the external linked code:

controller

app.controller("ctrl",['$scope', function($scope){
  $scope.options = {animation: {duration: 0}};
}])

view

<canvas id="line" class="chart chart-line"
  chart-options="options"
></canvas>

or globally using chartjsprovider in the config method of the app:

app.config(function(chartjsprovider) {
    chartjsprovider.setoptions({
      animation: {duration: 0}
    });
})

i hope this helps, all of the info i posted can be found in the chart.js documentation: http://www.chartjs.org/docs/latest/configuration/animations.html


Related Query