echartConfig.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. // echart配置
  2. let options = {
  3. echartDom: {
  4. title: {
  5. text: '',
  6. show: false
  7. },
  8. tooltip: {
  9. trigger: 'axis'
  10. },
  11. dataZoom: [{
  12. show: false,
  13. type: 'inside',
  14. start: 50,
  15. end: 100
  16. },
  17. {
  18. show: false,
  19. start: 50,
  20. end: 100
  21. }
  22. ],
  23. color: [],
  24. legend: {
  25. show: false,
  26. data: []
  27. },
  28. grid: {
  29. top: '40',
  30. left: '3%',
  31. right: '40',
  32. bottom: '3%',
  33. containLabel: true
  34. },
  35. xAxis: [{
  36. name: '',
  37. type: 'category',
  38. boundaryGap: false,
  39. data: []
  40. }],
  41. yAxis: [{
  42. type: 'value',
  43. name: ""
  44. }],
  45. series: []
  46. },
  47. echartDomShowLegend: {
  48. title: {
  49. text: '',
  50. show: false
  51. },
  52. tooltip: {
  53. trigger: 'axis'
  54. },
  55. dataZoom: [{
  56. show: false,
  57. type: 'inside',
  58. start: 50,
  59. end: 100
  60. },
  61. {
  62. show: false,
  63. start: 50,
  64. end: 100
  65. }
  66. ],
  67. color: [],
  68. legend: {
  69. data: []
  70. },
  71. grid: {
  72. top: '60',
  73. left: '3%',
  74. right: '40',
  75. bottom: '3%',
  76. containLabel: true
  77. },
  78. xAxis: [{
  79. name: '',
  80. type: 'category',
  81. boundaryGap: false,
  82. data: []
  83. }],
  84. yAxis: [{
  85. type: 'value',
  86. name: ""
  87. }],
  88. series: []
  89. },
  90. echartDom2: {
  91. legend: {
  92. show: false,
  93. top: 'top'
  94. },
  95. series: [{
  96. type: 'pie',
  97. radius: ["25%", "50%"],
  98. center: ['50%', '50%'],
  99. label: {
  100. alignTo: 'edge',
  101. minMargin: 5,
  102. edgeDistance: 10,
  103. lineHeight: 15,
  104. rich: {
  105. value: {
  106. fontSize: 10,
  107. color: '#999'
  108. }
  109. }
  110. },
  111. data: []
  112. }]
  113. },
  114. echart2: {
  115. xAxis: {
  116. type: 'category',
  117. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  118. },
  119. yAxis: {
  120. show: false,
  121. type: 'value'
  122. },
  123. grid: {
  124. bottom: 20,
  125. left: 10,
  126. right: 10,
  127. top: 30
  128. },
  129. color: "#CADFFA",
  130. series: [{
  131. data: [
  132. 120,
  133. {
  134. value: 200,
  135. itemStyle: {
  136. color: '#5498ED'
  137. },
  138. label: {
  139. show: true,
  140. position: 'top',
  141. color: '#5498ED',
  142. fontWeight: 'bold',
  143. fontSize: 16
  144. }
  145. },
  146. 150,
  147. 80,
  148. 70,
  149. 110,
  150. 130
  151. ],
  152. itemStyle: {
  153. normal: {
  154. barBorderRadius: [50, 50, 50, 50]
  155. }
  156. },
  157. type: 'bar'
  158. }]
  159. },
  160. echart3: {
  161. xAxis: {
  162. type: 'category',
  163. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue',
  164. 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'
  165. ]
  166. },
  167. yAxis: {
  168. show: false,
  169. type: 'value'
  170. },
  171. grid: {
  172. bottom: 20,
  173. left: 10,
  174. right: 10,
  175. top: 5
  176. },
  177. color: "#E69973",
  178. series: [{
  179. data: [
  180. 120,
  181. 200,
  182. 150,
  183. 80,
  184. 70,
  185. 110,
  186. 130,
  187. 200,
  188. 150,
  189. 80,
  190. 70,
  191. 110,
  192. 130,
  193. 200,
  194. 150,
  195. 80,
  196. 70,
  197. 110,
  198. 130
  199. ],
  200. itemStyle: {
  201. normal: {
  202. barBorderRadius: [50, 50, 50, 50]
  203. }
  204. },
  205. type: 'bar'
  206. }]
  207. }
  208. }