dac175904517cc409c7b4b89e31c8db5b4c28c8439afc17e1261138af5f46a5d79d3a9ac7fd1fd69e4445549630072b3d69f8afa2d2682d798d188da27887d 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. export const radarAxisConfig = {
  2. /**
  3. * @description Whether to display this radar axis
  4. * @type {Boolean}
  5. * @default show = true
  6. */
  7. show: true,
  8. /**
  9. * @description Center point of radar axis
  10. * @type {Array}
  11. * @default center = ['50%','50%']
  12. * @example center = ['50%','50%'] | [100, 100]
  13. */
  14. center: ['50%', '50%'],
  15. /**
  16. * @description Radius of radar axis
  17. * @type {String|Number}
  18. * @default radius = '65%'
  19. * @example radius = '65%' | 100
  20. */
  21. radius: '65%',
  22. /**
  23. * @description Radar axis start angle
  24. * @type {Number}
  25. * @default startAngle = -Math.PI / 2
  26. * @example startAngle = -Math.PI
  27. */
  28. startAngle: -Math.PI / 2,
  29. /**
  30. * @description Radar axis split number
  31. * @type {Number}
  32. * @default splitNum = 5
  33. */
  34. splitNum: 5,
  35. /**
  36. * @description Whether to enable polygon radar axis
  37. * @type {Boolean}
  38. * @default polygon = false
  39. */
  40. polygon: false,
  41. /**
  42. * @description Axis label configuration
  43. * @type {Object}
  44. */
  45. axisLabel: {
  46. /**
  47. * @description Whether to display axis label
  48. * @type {Boolean}
  49. * @default show = true
  50. */
  51. show: true,
  52. /**
  53. * @description Label gap between label and radar axis
  54. * @type {Number}
  55. * @default labelGap = 15
  56. */
  57. labelGap: 15,
  58. /**
  59. * @description Label color (Hex|rgb|rgba), will cover style.fill
  60. * @type {Array}
  61. * @default color = []
  62. */
  63. color: [],
  64. /**
  65. * @description Axis label default style configuration
  66. * @type {Object}
  67. * @default style = {Configuration Of Class Style}
  68. */
  69. style: {
  70. fill: '#333'
  71. }
  72. },
  73. /**
  74. * @description Axis line configuration
  75. * @type {Object}
  76. */
  77. axisLine: {
  78. /**
  79. * @description Whether to display axis line
  80. * @type {Boolean}
  81. * @default show = true
  82. */
  83. show: true,
  84. /**
  85. * @description Line color (Hex|rgb|rgba), will cover style.stroke
  86. * @type {Array}
  87. * @default color = []
  88. */
  89. color: [],
  90. /**
  91. * @description Axis label default style configuration
  92. * @type {Object}
  93. * @default style = {Configuration Of Class Style}
  94. */
  95. style: {
  96. stroke: '#999',
  97. lineWidth: 1
  98. }
  99. },
  100. /**
  101. * @description Split line configuration
  102. * @type {Object}
  103. */
  104. splitLine: {
  105. /**
  106. * @description Whether to display split line
  107. * @type {Boolean}
  108. * @default show = true
  109. */
  110. show: true,
  111. /**
  112. * @description Line color (Hex|rgb|rgba), will cover style.stroke
  113. * @type {Array}
  114. * @default color = []
  115. */
  116. color: [],
  117. /**
  118. * @description Split line default style configuration
  119. * @type {Object}
  120. * @default style = {Configuration Of Class Style}
  121. */
  122. style: {
  123. stroke: '#d4d4d4',
  124. lineWidth: 1
  125. }
  126. },
  127. /**
  128. * @description Split area configuration
  129. * @type {Object}
  130. */
  131. splitArea: {
  132. /**
  133. * @description Whether to display split area
  134. * @type {Boolean}
  135. * @default show = false
  136. */
  137. show: false,
  138. /**
  139. * @description Area color (Hex|rgb|rgba), will cover style.stroke
  140. * @type {Array}
  141. * @default color = []
  142. */
  143. color: ['#f5f5f5', '#e6e6e6'],
  144. /**
  145. * @description Split area default style configuration
  146. * @type {Object}
  147. * @default style = {Configuration Of Class Style}
  148. */
  149. style: {}
  150. },
  151. /**
  152. * @description Bar chart render level
  153. * Priority rendering high level
  154. * @type {Number}
  155. * @default rLevel = -10
  156. */
  157. rLevel: -10,
  158. /**
  159. * @description Radar axis animation curve
  160. * @type {String}
  161. * @default animationCurve = 'easeOutCubic'
  162. */
  163. animationCurve: 'easeOutCubic',
  164. /**
  165. * @description Radar axis animation frame
  166. * @type {Number}
  167. * @default animationFrame = 50
  168. */
  169. animationFrane: 50
  170. }