如下图所示表格
方法:?
//处理数据 将x y z 合并成[x,y,z]
let dealData = (xList, yList, zList) => {
let result = []
for(let i = 0; i < yList.length; i++){
for(let j = 0; j < xList.length; j++){
result.push([xList[j],yList[i], zList[i*yList.length + j]])
}
}
return result
}