设置了最小值之后的坐标轴看起来还是从0开始的,不够直观
配置项如下
var option = {
shape: 'circle',
legend: {
data: ['Last Log Index', 'Commit Index', 'Last Applied'],
selectedMode: 'single'
},
radar: {
splitNumber: 5,
indicator: [{
name: 'Follower',
max: 9446379,
min: 7800000
}, {
name: 'Leader',
max: 9446379,
min: 7800000
}, {
name: 'Follower',
max: 9446379,
min: 7800000
}, {
name: 'Follower',
max: 9446379,
min: 7800000
}, {
name: 'Follower',
max: 9446379,
min: 7800000
}, ]
},
series: [{
name: 'Last Log Index',
type: 'radar',
symbol: 'pin',
data: [
[7871983, 7800000, 7871983, 7871983, 7871983]
],
label: {
emphasis: {
show: true
}
}
}, {
name: 'Commit Index',
type: 'radar',
symbol: 'pin',
data: [
[7871983, 7800000, 7871983, 7871983, 7871983]
],
label: {
emphasis: {
show: true
}
}
}, {
name: 'Last Applied',
type: 'radar',
symbol: 'pin',
data: [
[7871983, 7800000, 7871983, 7871983, 7871983]
],
label: {
emphasis: {
show: true
}
}
}]
};