Hi I tried to customize the first example of Plotly animation: https://plot.ly/javascript/animations/#animating-the-data in a bar chart and it seems not working anymore. The randomized bars are correctly rendered but no animation is observed:
Plotly.plot('graph', [{
x: [1, 2, 3],
y: [2, 0.5, 1],
type: 'bar'
}]);
function randomize() {
Plotly.animate('graph', {
data: [{y: [Math.random(), Math.random(), Math.random()]}],
traces: [0],
layout: {}
}, {
transition: {
duration: 500,
easing: 'cubic-in-out'
}
})
}
Anyone have some idea where it may go wrong?