我想在这个极坐标中,东南西北显示在对应的位置啊,就是 上北下南左西右东这样显示类别, 就像我上传的截图那样子
配置项如下
app.title = '极坐标系下的堆叠柱状图';
option = {
angleAxis: {
type: 'category',
data: [{
value: '北',
textStyle: {
color: 'red'
}
},
{
value: '东',
textStyle: {
color: 'red'
}
},
{
value: '南',
textStyle: {
color: 'red'
}
},
{
value: '西',
textStyle: {
color: 'red'
}
}
],
z: 10,
axisTick: {
show: true,
alignWithLabel: false
},
axisLabel: {
show: true
}
},
radiusAxis: {
},
tooltip: {
show: true
},
polar: {},
series: [{
type: 'bar',
data: [1, 2, 3, 4],
coordinateSystem: 'polar',
name: 'A',
stack: 'a'
}, {
type: 'bar',
data: [2, 4, 6, 1],
coordinateSystem: 'polar',
name: 'B',
stack: 'a'
}, {
type: 'bar',
data: [1, 2, 3, 4],
coordinateSystem: 'polar',
name: 'C',
stack: 'a'
}],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};