radar. zleve
radar. z = 2
radar. center = [‘50%’, ‘50%’]
// 设置成绝对的像素值
center: [400, 300]
// 设置成相对的百分比
center: ['50%', '50%']
radar. radius = 75%
radar. startAngle = 90
radar. nameObject
radar.name. show = trueboolean
radar.name. formatterstringFunction
// 使用字符串模板,模板变量为指示器名称 {value}
formatter: '【{value}】'
// 使用回调函数,第一个参数是指示器名称,第二个参数是指示器配置项
formatter: function (value, indicator) {
return '【' + value + '】';
}
radar. textStyle
radar. axisLineObject
radar. axisTickObject
radar. axisLabelObject
radar. indicatorArray
indicator: [
{ name: '销售(sales)', max: 6500},
{ name: '管理(Administration)', max: 16000, color: 'red'}, // 标签设置为红色
{ name: '信息技术(Information Techology)', max: 30000},
{ name: '客服(Customer Support)', max: 38000},
{ name: '研发(Development)', max: 52000},
{ name: '市场(Marketing)', max: 25000}
]
radar.indicator. namestring
radar.indicator. max
radar.indicator. min
radar.indicator. color