eb6a014e3ca84e31751b42c66cdefc3d68d3fbe912105624140b706eb94ae48cf62e356b77282140a4d387eb6f2c9772f1f5e2e4810bdfed415b2dee8cdc9a 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. export const lineConfig = {
  2. /**
  3. * @description Whether to display this line chart
  4. * @type {Boolean}
  5. * @default show = true
  6. */
  7. show: true,
  8. /**
  9. * @description Legend name
  10. * @type {String}
  11. * @default name = ''
  12. */
  13. name: '',
  14. /**
  15. * @description Data stacking
  16. * The data value of the series element of the same stack
  17. * will be superimposed (the latter value will be superimposed on the previous value)
  18. * @type {String}
  19. * @default stack = ''
  20. */
  21. stack: '',
  22. /**
  23. * @description Smooth line
  24. * @type {Boolean}
  25. * @default smooth = false
  26. */
  27. smooth: false,
  28. /**
  29. * @description Line x axis index
  30. * @type {Number}
  31. * @default xAxisIndex = 0
  32. * @example xAxisIndex = 0 | 1
  33. */
  34. xAxisIndex: 0,
  35. /**
  36. * @description Line y axis index
  37. * @type {Number}
  38. * @default yAxisIndex = 0
  39. * @example yAxisIndex = 0 | 1
  40. */
  41. yAxisIndex: 0,
  42. /**
  43. * @description Line chart data
  44. * @type {Array}
  45. * @default data = []
  46. * @example data = [100, 200, 300]
  47. */
  48. data: [],
  49. /**
  50. * @description Line default style configuration
  51. * @type {Object}
  52. * @default style = {Configuration Of Class Style}
  53. */
  54. lineStyle: {
  55. lineWidth: 1
  56. },
  57. /**
  58. * @description Line point configuration
  59. * @type {Object}
  60. */
  61. linePoint: {
  62. /**
  63. * @description Whether to display line point
  64. * @type {Boolean}
  65. * @default show = true
  66. */
  67. show: true,
  68. /**
  69. * @description Line point radius
  70. * @type {Number}
  71. * @default radius = 2
  72. */
  73. radius: 2,
  74. /**
  75. * @description Line point default style configuration
  76. * @type {Object}
  77. * @default style = {Configuration Of Class Style}
  78. */
  79. style: {
  80. fill: '#fff',
  81. lineWidth: 1
  82. }
  83. },
  84. /**
  85. * @description Line area configuration
  86. * @type {Object}
  87. */
  88. lineArea: {
  89. /**
  90. * @description Whether to display line area
  91. * @type {Boolean}
  92. * @default show = false
  93. */
  94. show: false,
  95. /**
  96. * @description Line area gradient color (Hex|rgb|rgba)
  97. * @type {Array}
  98. * @default gradient = []
  99. */
  100. gradient: [],
  101. /**
  102. * @description Line area style default configuration
  103. * @type {Object}
  104. * @default style = {Configuration Of Class Style}
  105. */
  106. style: {
  107. opacity: 0.5
  108. }
  109. },
  110. /**
  111. * @description Line label configuration
  112. * @type {Object}
  113. */
  114. label: {
  115. /**
  116. * @description Whether to display line label
  117. * @type {Boolean}
  118. * @default show = false
  119. */
  120. show: false,
  121. /**
  122. * @description Line label position
  123. * @type {String}
  124. * @default position = 'top'
  125. * @example position = 'top' | 'center' | 'bottom'
  126. */
  127. position: 'top',
  128. /**
  129. * @description Line label offset
  130. * @type {Array}
  131. * @default offset = [0, -10]
  132. */
  133. offset: [0, -10],
  134. /**
  135. * @description Line label formatter
  136. * @type {String|Function}
  137. * @default formatter = null
  138. * @example formatter = '{value}件'
  139. * @example formatter = (dataItem) => (dataItem.value)
  140. */
  141. formatter: null,
  142. /**
  143. * @description Line label default style configuration
  144. * @type {Object}
  145. * @default style = {Configuration Of Class Style}
  146. */
  147. style: {
  148. fontSize: 10
  149. }
  150. },
  151. /**
  152. * @description Line chart render level
  153. * Priority rendering high level
  154. * @type {Number}
  155. * @default rLevel = 10
  156. */
  157. rLevel: 10,
  158. /**
  159. * @description Line animation curve
  160. * @type {String}
  161. * @default animationCurve = 'easeOutCubic'
  162. */
  163. animationCurve: 'easeOutCubic',
  164. /**
  165. * @description Line animation frame
  166. * @type {Number}
  167. * @default animationFrame = 50
  168. */
  169. animationFrame: 50
  170. }