Disable Animation with Charts.js

charts, javascript

Solution

options: {
    animation: {
        duration: 0
    }
}

Problem

I'm having some trouble turning off the animation with charts.js. This is my code: ``` var pieData = [ { value: 30, color:"#F38630" }, { value : 50, color : "#E0E4CC" }, { value : 100, color : "#69D2E7" } ]; var myPie = new Chart(document.getElementById("canvas").getContext("2d")).Pie(pieData); ``` Can anyone provide an example?

Original source