https://github.com/apache/incubator-echarts/issues/12109
这个问题下说是负值不可以,但是我发现min设置为1,图形也不正确,所以应该是min有问题
配置项如下
option = {
angleAxis: {
type: 'category',
data: ['S1', 'S2', 'S3']
},
radiusAxis: {
min: 1,
max: 6
},
polar: {
},
series: [{
type: 'bar',
data: [2, 2, 2],
coordinateSystem: 'polar',
itemStyle:{
color:"blue"
},
name: 'A',
stack: 'a'
},
{
type: 'bar',
data: [2, 2, 2],
coordinateSystem: 'polar',
name: 'B',
stack: 'a'
},
{
type: 'bar',
data: [2, 2, 2],
coordinateSystem: 'polar',
name: 'C',
stack: 'a'
}],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};