在极坐标系中将坐标轴刻度和标签的inside设置成true并没有起作用,始终是朝左边的也就是朝外的,而在直角坐标系中是正常的
配置项如下
app.title = '极坐标系下的堆叠柱状图';
option = {
backgroundColor:'#0e2129',
angleAxis: {
axisLine:{
show:false,
lineStyle:{
width:0,
color:'white'
}
},
splitLine:{
show:false
},
axisTick:{
show:false
},
axisLabel:{
show:false
}
},
radiusAxis: {
type: 'category',
data: ['日','周','月','季'],
z: 10,
axisLine:{
show:false,
lineStyle:{
width:1,
color:'white'
}
},
splitLine:{
show:false
},
axisTick:{
show:true,
alignWithLabel:true,
inside:true
},
axisLabel:{
show:true,
inside:true
}
},
polar: {
},
series: [{
type: 'bar',
data: [97.45, 60.65,29.65,11.72],
coordinateSystem: 'polar',
name: '未执行',
stack: 'a',
barGap:'0',
itemStyle:{
normal:{
color:new echarts.graphic.LinearGradient(
1, 0, 0, 0,[
{offset: 0, color: '#000'},
{offset: 0.5, color: '#888'},
{offset: 1, color: '#ddd'}
])
}
}
}, {
type: 'bar',
data: [2.55, 39.35,70.35,88.28],
coordinateSystem: 'polar',
name: '执行',
stack: 'a',
barGap:'0'
}],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};