- 雷达图背景颜色
- 雷达图网格颜色
- indicator文字颜色
- 数据区域边框颜色
- 雷达图内部射线颜色
- 雷达图的圈数
- 雷达图每圈具体数值的显示
- 具体数值拐点样式
function getRadarChart(){
var option = {
radar: {
shape: 'square',
splitNumber: 5,
indicator: [
{ name: '渠道1', max: 65000},
{ name: '渠道2', max: 16000},
{ name: '渠道3', max: 30000},
{ name: '渠道4', max: 52000},
{ name: '渠道5', max: 38000},
{ name: '渠道6', max: 25000}
],
axisLine: {
lineStyle: {
color: '#c0c0c0',
},
},
splitArea : {
show : true,
areaStyle : {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
{offset: 0, color: '#c1ddf8'},
{offset: 1, color: '#1e83e4'}
], false)
}
},
splitLine : {
show : true,
lineStyle : {
width : 1,
color : '#1e83e4',
},
},
name:{
textStyle:{
color:"#4f4f4f"
}
}
},
series: [{
name: '受理渠道分类',
type: 'radar',
symbol: 'circle',
symbolSize: 6,
data: [
{
value: [4200, 3000, 20000, 35000, 30000, 18000],
name: '渠道分类',
itemStyle: {
normal: {
color: 'rgba(255,225,0,.3)',
lineStyle: {
color: 'rgba(255,225,0,.3)',
},
},
},
label: {
normal: {
show: true,
textStyle:{
color:'orange'
}
},
},
areaStyle: {
normal: {
width: 1,
opacity: 0.8,
},
},
}
]
}]
};
return option
}
效果显示:
|