How to calculate x,y,z axis in 3d chart

Here is my api response
image

how to calculate x,y,z axis for surface type

i want to archive like this
image