Making a scatter graph responsive

I am trying to make the scatter graph responsive. I have looked at the code from https://plot.ly/javascript/responsive-fluid-layout/ and am having trouble matching the code.
Here is an address the the fiddle I have been playing around with https://jsfiddle.net/aaronmk2/n551p7oa/1/. If anyone can show me or guide me on what to do, to make the scatter graph responsive.

Here’s a working version:

https://jsfiddle.net/kz6eopfv/1/

1 Like

Hi Etienne,
Here in the above give examples it works very well with the resize of the screen.
I.e when we resize the screen its working we are getting responsive.

But the ctrl zoom is not working.
i.e when we press ctrl + mouse wheel the size remains the same .
Can You please helps us in fixing it .

Thank you
Venkat