Black Lives Matter. Please consider donating to Black Girls Code today.

How to display 3d surface using rectangular matrix csv file?

I use the plotly.js with the following code:

My csv file contains a non-quadratic matrix: width (600) > height (400)
How is it possible to customize the javascript code that the complete matrix is converted to surface?

thank you for your help!