750977218b2ee70d9777eb2c5da6816a7abc6734c8daba6ed3a484a99a47bf24321161979c1b9fae13925b36d5e69fdadcf5ab08769849d41f92f70d7148a4 3.8 KB

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