| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- export const radarAxisConfig = {
- /**
- * @description Whether to display this radar axis
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Center point of radar axis
- * @type {Array}
- * @default center = ['50%','50%']
- * @example center = ['50%','50%'] | [100, 100]
- */
- center: ['50%', '50%'],
- /**
- * @description Radius of radar axis
- * @type {String|Number}
- * @default radius = '65%'
- * @example radius = '65%' | 100
- */
- radius: '65%',
- /**
- * @description Radar axis start angle
- * @type {Number}
- * @default startAngle = -Math.PI / 2
- * @example startAngle = -Math.PI
- */
- startAngle: -Math.PI / 2,
- /**
- * @description Radar axis split number
- * @type {Number}
- * @default splitNum = 5
- */
- splitNum: 5,
- /**
- * @description Whether to enable polygon radar axis
- * @type {Boolean}
- * @default polygon = false
- */
- polygon: false,
- /**
- * @description Axis label configuration
- * @type {Object}
- */
- axisLabel: {
- /**
- * @description Whether to display axis label
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Label gap between label and radar axis
- * @type {Number}
- * @default labelGap = 15
- */
- labelGap: 15,
- /**
- * @description Label color (Hex|rgb|rgba), will cover style.fill
- * @type {Array}
- * @default color = []
- */
- color: [],
- /**
- * @description Axis label default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- fill: '#333'
- }
- },
- /**
- * @description Axis line configuration
- * @type {Object}
- */
- axisLine: {
- /**
- * @description Whether to display axis line
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Line color (Hex|rgb|rgba), will cover style.stroke
- * @type {Array}
- * @default color = []
- */
- color: [],
- /**
- * @description Axis label default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- stroke: '#999',
- lineWidth: 1
- }
- },
- /**
- * @description Split line configuration
- * @type {Object}
- */
- splitLine: {
- /**
- * @description Whether to display split line
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Line color (Hex|rgb|rgba), will cover style.stroke
- * @type {Array}
- * @default color = []
- */
- color: [],
- /**
- * @description Split line default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- stroke: '#d4d4d4',
- lineWidth: 1
- }
- },
- /**
- * @description Split area configuration
- * @type {Object}
- */
- splitArea: {
- /**
- * @description Whether to display split area
- * @type {Boolean}
- * @default show = false
- */
- show: false,
- /**
- * @description Area color (Hex|rgb|rgba), will cover style.stroke
- * @type {Array}
- * @default color = []
- */
- color: ['#f5f5f5', '#e6e6e6'],
- /**
- * @description Split area default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {}
- },
- /**
- * @description Bar chart render level
- * Priority rendering high level
- * @type {Number}
- * @default rLevel = -10
- */
- rLevel: -10,
- /**
- * @description Radar axis animation curve
- * @type {String}
- * @default animationCurve = 'easeOutCubic'
- */
- animationCurve: 'easeOutCubic',
- /**
- * @description Radar axis animation frame
- * @type {Number}
- * @default animationFrame = 50
- */
- animationFrane: 50
- }
|