Import xyz/csv file to Surface

Hello again. I posted a similar question about importing JSON files, but didn’t get much response. So, i’m going to try with a CSV file! :slight_smile: can anyone give me any help with importing or reading a simple 3 column CSV text file into a type: surface in JS Plotly?(x, y, z or basically longitude, latitude, elevation) what is the correct formatting of the array to create the surface? I have used “d3.csv” in past situations. here is a sample piece of the file: Thanks!

1 Like

Hello @pacsiah,

According to example below

This is the correct format :

But i don’t know how to achieve this format from xyz.csv in javascript.

If you figure it out please let me know.