-
Notifications
You must be signed in to change notification settings - Fork 19.8k
3d坐标轴如何设置x,y,z轴的位置? #6062
Copy link
Copy link
Closed
Labels
enhancementstaleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
One-line summary [问题简述]
有什么办法可以调整坐标轴的位置,让所有坐标轴从原点向外延伸并只显示一个0刻度,其他刻度正常。如下图所示
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
option = {
xAxis3D: {
name:'X',
axisLine:{
show:true
},
axisLabel:{
show:true
},
axisTick:{
show:true
},
// scale:true,
type: 'value'
},
yAxis3D: {
type: 'value'
},
zAxis3D: {
type: 'value'
},
grid3D: {
boxWidth:200,
boxHeight:100,
boxDepth:100,
axisLine:{
lineStyle:{
color:'#666',
// opacity:0.5
}
},
splitLine:{
show:true
},
splitArea:{
show:true
},
viewControl: {
distance:260,
alpha:90,
beta:0,
// center:[0,0,0]
},
},
series: [{
type: 'line3D',
data: [[1,2,2],[2,3,1],[3,4,1],[4,5,1],[5,6,1]],
stack: 'stack',
shading: 'color',
emphasis: {
label: {
show: false
}
}
}]
}Other comments [其他信息]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementstaleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
