Animate resizing chart

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!:slight_smile:

Only a few plotly.js features are animatable. Your codepen displays the current desired behavior (unfortunately).

1 Like

Resizing is not animatable yet?

That’s correct. Unfortunately.

1 Like

Thank you my dear friend. Have a great day