echarts-macarons.js 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /* eslint-disable */
  2. (function (root, factory) {
  3. if (typeof define === 'function' && define.amd) {
  4. // AMD. Register as an anonymous module.
  5. define(['exports', 'echarts'], factory);
  6. } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
  7. // CommonJS
  8. factory(exports, require('echarts'));
  9. } else {
  10. // Browser globals
  11. factory({}, root.echarts);
  12. }
  13. }(this, function (exports, echarts) {
  14. var log = function (msg) {
  15. if (typeof console !== 'undefined') {
  16. console && console.error && console.error(msg);
  17. }
  18. };
  19. if (!echarts) {
  20. log('ECharts is not Loaded');
  21. return;
  22. }
  23. var colorPalette = [
  24. '#2ec7c9','#b6a2de','#5ab1ef','#ffb980','#d87a80',
  25. '#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa',
  26. '#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050',
  27. '#59678c','#c9ab00','#7eb00a','#6f5553','#c14089'
  28. ];
  29. var theme = {
  30. color: colorPalette,
  31. title: {
  32. textStyle: {
  33. fontWeight: 'normal',
  34. color: '#008acd'
  35. }
  36. },
  37. visualMap: {
  38. itemWidth: 15,
  39. color: ['#5ab1ef','#e0ffff']
  40. },
  41. toolbox: {
  42. iconStyle: {
  43. normal: {
  44. borderColor: colorPalette[0]
  45. }
  46. }
  47. },
  48. tooltip: {
  49. backgroundColor: 'rgba(50,50,50,0.5)',
  50. axisPointer : {
  51. type : 'line',
  52. lineStyle : {
  53. color: '#008acd'
  54. },
  55. crossStyle: {
  56. color: '#008acd'
  57. },
  58. shadowStyle : {
  59. color: 'rgba(200,200,200,0.2)'
  60. }
  61. }
  62. },
  63. dataZoom: {
  64. dataBackgroundColor: '#efefff',
  65. fillerColor: 'rgba(182,162,222,0.2)',
  66. handleColor: '#008acd'
  67. },
  68. grid: {
  69. borderColor: '#eee'
  70. },
  71. categoryAxis: {
  72. axisLine: {
  73. lineStyle: {
  74. color: '#008acd'
  75. }
  76. },
  77. splitLine: {
  78. lineStyle: {
  79. color: ['#eee']
  80. }
  81. }
  82. },
  83. valueAxis: {
  84. axisLine: {
  85. lineStyle: {
  86. color: '#008acd'
  87. }
  88. },
  89. splitArea : {
  90. show : true,
  91. areaStyle : {
  92. color: ['rgba(250,250,250,0.1)','rgba(200,200,200,0.1)']
  93. }
  94. },
  95. splitLine: {
  96. lineStyle: {
  97. color: ['#eee']
  98. }
  99. }
  100. },
  101. timeline : {
  102. lineStyle : {
  103. color : '#008acd'
  104. },
  105. controlStyle : {
  106. normal : { color : '#008acd'},
  107. emphasis : { color : '#008acd'}
  108. },
  109. symbol : 'emptyCircle',
  110. symbolSize : 3
  111. },
  112. line: {
  113. smooth : true,
  114. symbol: 'emptyCircle',
  115. symbolSize: 3
  116. },
  117. candlestick: {
  118. itemStyle: {
  119. normal: {
  120. color: '#d87a80',
  121. color0: '#2ec7c9',
  122. lineStyle: {
  123. color: '#d87a80',
  124. color0: '#2ec7c9'
  125. }
  126. }
  127. }
  128. },
  129. scatter: {
  130. symbol: 'circle',
  131. symbolSize: 4
  132. },
  133. map: {
  134. label: {
  135. normal: {
  136. textStyle: {
  137. color: '#d87a80'
  138. }
  139. }
  140. },
  141. itemStyle: {
  142. normal: {
  143. borderColor: '#eee',
  144. areaColor: '#ddd'
  145. },
  146. emphasis: {
  147. areaColor: '#fe994e'
  148. }
  149. }
  150. },
  151. graph: {
  152. color: colorPalette
  153. },
  154. gauge : {
  155. axisLine: {
  156. lineStyle: {
  157. color: [[0.2, '#2ec7c9'],[0.8, '#5ab1ef'],[1, '#d87a80']],
  158. width: 10
  159. }
  160. },
  161. axisTick: {
  162. splitNumber: 10,
  163. length :15,
  164. lineStyle: {
  165. color: 'auto'
  166. }
  167. },
  168. splitLine: {
  169. length :22,
  170. lineStyle: {
  171. color: 'auto'
  172. }
  173. },
  174. pointer : {
  175. width : 5
  176. }
  177. }
  178. };
  179. echarts.registerTheme('macarons', theme);
  180. }));