series[i] ({type: ‘radar’, …})
将series子元素的type属性配置为radar,即可使用雷达图。
::: tip TIP
使用雷达图需要配置radar雷达坐标系。
:::
show
/*** @description 是否显示该雷达图* @type {Boolean}* @default show = true*/
name
/*** @description 图例标签名* @type {String}* @default name = ''*/
data
/*** @description 构成雷达图的数据* @type {Array}* @default data = []* @example data = [100, 200, 300]*/
radarStyle
/*** @description 雷达图默认样式* @type {Object}* @default style = {Class Style的配置项}*/radarStyle: {lineWidth: 1}
point
/*** @description 雷达图球点配置* @type {Object}*/
point.show
/*** @description 是否显示雷达图球点* @type {Boolean}* @default show = true*/
point.radius
/*** @description 球点半径* @type {Number}* @default radius = 2*/
point.style
/*** @description 雷达图球点默认样式* @type {Object}* @default style = {Class Style的配置项}*/style: {fill: '#fff'}
label
/*** @description 雷达图标签配置* @type {Object}*/
label.show
/*** @description 是否显示标签* @type {Boolean}* @default show = true*/
label.offset
/*** @description 标签位置偏移* @type {Array}* @default offset = [0, 0]*/
label.labelGap
/*** @description 标签与雷达图间的间隔* @type {Number}* @default labelGap = 5*/
label.formatter
/*** @description 标签格式化* @type {String|Function}* @default formatter = null* @example formatter = 'Score-{value}'* @example formatter = (label) => (label)*/
label.style
/*** @description 标签默认样式* @type {Object}* @default style = {Class Style的配置项}*/style: {fontSize: 10}
rLevel
/*** @description 雷达图渲染级别* 级别高者优先渲染* @type {Number}* @default rLevel = 10*/
animationCurve
/*** @description 雷达图缓动曲线* @type {String}* @default animationCurve = 'easeOutCubic'*/
animationFrane
/*** @description 雷达图缓动效果帧数* @type {Number}* @default animationFrame = 50*/
