如图所示,如果自定义“南”和“东”的位置
配置项如下
option={
grid3D: [
{
show:true,
boxWidth:70,
boxHeight:-150,
boxDepth:70,
axisLine:{
show:true,
interval:'auto',
lineStyle:{
color:'#333',
opacity:1,
width:2
}
},
splitArea:{
show:true,
areaStyle:{
color:['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
}
},
axisPointer:{
show:true,
lineStyle:{
color:'rgba(0, 0, 0, 0.8)',
opacity:1,
width:1
},
label:{
show:true
}
},
viewControl:{
autoRotate:false,
autoRotateAfterStill:2,
rotateSensitivity:0.8,
distance:230,
beta:20,
minBeta:0,
maxBeta:90
}
}
],
xAxis3D:[
{
show:true,
name:'南',//如何改变位置
nameTextStyle:{
color:'red',
borderWidth:0,
borderColor:'#fff',
fontSize:26
},
nameGap:20,
}
],
yAxis3D: {
show:true,
name:'东',
nameTextStyle:{
color:'red',
borderWidth:0,
borderColor:'#fff',
fontSize:26
},
nameGap:20,
},
zAxis3D: {
name:'深度',
nameTextStyle:{
color:'red',
borderWidth:0,
borderColor:'#fff',
fontSize:26
},
show:true,
},
series: {
type: 'line3D',
data:[
[0,0,40],[0,0,100]
],
lineStyle:{
color:'blue',
opacity:1,
width:2
}
}
};