Tried to do it with following code:
Plotly.plot('graph', [{
x: [1, 2, 3],
y: [0, 0.5, 1],
line: {simplify: false},
}]);
function randomize() {
Plotly.animate('graph', {
layout: {height: 300}
}, {
transition: {
duration: 500,
ease: 'cubic-in-out'
}
})
}
Unfortunately it doesn’t work. Any help appreciated!