关键代码:
projection: 'perspective',
distance: 400
grid3D: {
boxWidth: 400,
boxDepth: 160,
viewControl: {
projection: 'perspective', // 先设置为这个perspective
distance: 400 //默认缩放比例
},
light: {
main: {
intensity: 1.2,
shadow: true
},
ambient: {
intensity: 0.3
}
}
},
官方GL配置连接:https://echarts.apache.org/zh/option-gl.html#grid3D.viewControl.distance