green.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. var theme = {
  2. color: [
  3. '#26B99A', '#34495E', '#BDC3C7', '#3498DB',
  4. '#9B59B6', '#8abb6f', '#759c6a', '#bfd3b7'
  5. ],
  6. title: {
  7. itemGap: 8,
  8. textStyle: {
  9. fontWeight: 'normal',
  10. color: '#408829'
  11. }
  12. },
  13. dataRange: {
  14. color: ['#1f610a', '#97b58d']
  15. },
  16. toolbox: {
  17. color: ['#408829', '#408829', '#408829', '#408829']
  18. },
  19. tooltip: {
  20. backgroundColor: 'rgba(0,0,0,0.5)',
  21. axisPointer: {
  22. type: 'line',
  23. lineStyle: {
  24. color: '#408829',
  25. type: 'dashed'
  26. },
  27. crossStyle: {
  28. color: '#408829'
  29. },
  30. shadowStyle: {
  31. color: 'rgba(200,200,200,0.3)'
  32. }
  33. }
  34. },
  35. dataZoom: {
  36. dataBackgroundColor: '#eee',
  37. fillerColor: 'rgba(64,136,41,0.2)',
  38. handleColor: '#408829'
  39. },
  40. grid: {
  41. borderWidth: 0
  42. },
  43. categoryAxis: {
  44. axisLine: {
  45. lineStyle: {
  46. color: '#408829'
  47. }
  48. },
  49. splitLine: {
  50. lineStyle: {
  51. color: ['#eee']
  52. }
  53. }
  54. },
  55. valueAxis: {
  56. axisLine: {
  57. lineStyle: {
  58. color: '#408829'
  59. }
  60. },
  61. splitArea: {
  62. show: true,
  63. areaStyle: {
  64. color: ['rgba(250,250,250,0.1)', 'rgba(200,200,200,0.1)']
  65. }
  66. },
  67. splitLine: {
  68. lineStyle: {
  69. color: ['#eee']
  70. }
  71. }
  72. },
  73. timeline: {
  74. lineStyle: {
  75. color: '#408829'
  76. },
  77. controlStyle: {
  78. normal: {color: '#408829'},
  79. emphasis: {color: '#408829'}
  80. }
  81. },
  82. k: {
  83. itemStyle: {
  84. normal: {
  85. color: '#68a54a',
  86. color0: '#a9cba2',
  87. lineStyle: {
  88. width: 1,
  89. color: '#408829',
  90. color0: '#86b379'
  91. }
  92. }
  93. }
  94. },
  95. map: {
  96. itemStyle: {
  97. normal: {
  98. areaStyle: {
  99. color: '#ddd'
  100. },
  101. label: {
  102. textStyle: {
  103. color: '#c12e34'
  104. }
  105. }
  106. },
  107. emphasis: {
  108. areaStyle: {
  109. color: '#99d2dd'
  110. },
  111. label: {
  112. textStyle: {
  113. color: '#c12e34'
  114. }
  115. }
  116. }
  117. }
  118. },
  119. force: {
  120. itemStyle: {
  121. normal: {
  122. linkStyle: {
  123. strokeColor: '#408829'
  124. }
  125. }
  126. }
  127. },
  128. chord: {
  129. padding: 4,
  130. itemStyle: {
  131. normal: {
  132. lineStyle: {
  133. width: 1,
  134. color: 'rgba(128, 128, 128, 0.5)'
  135. },
  136. chordStyle: {
  137. lineStyle: {
  138. width: 1,
  139. color: 'rgba(128, 128, 128, 0.5)'
  140. }
  141. }
  142. },
  143. emphasis: {
  144. lineStyle: {
  145. width: 1,
  146. color: 'rgba(128, 128, 128, 0.5)'
  147. },
  148. chordStyle: {
  149. lineStyle: {
  150. width: 1,
  151. color: 'rgba(128, 128, 128, 0.5)'
  152. }
  153. }
  154. }
  155. }
  156. },
  157. gauge: {
  158. startAngle: 225,
  159. endAngle: -45,
  160. axisLine: {
  161. show: true,
  162. lineStyle: {
  163. color: [[0.2, '#86b379'], [0.8, '#68a54a'], [1, '#408829']],
  164. width: 8
  165. }
  166. },
  167. axisTick: {
  168. splitNumber: 10,
  169. length: 12,
  170. lineStyle: {
  171. color: 'auto'
  172. }
  173. },
  174. axisLabel: {
  175. textStyle: {
  176. color: 'auto'
  177. }
  178. },
  179. splitLine: {
  180. length: 18,
  181. lineStyle: {
  182. color: 'auto'
  183. }
  184. },
  185. pointer: {
  186. length: '90%',
  187. color: 'auto'
  188. },
  189. title: {
  190. textStyle: {
  191. color: '#333'
  192. }
  193. },
  194. detail: {
  195. textStyle: {
  196. color: 'auto'
  197. }
  198. }
  199. },
  200. textStyle: {
  201. fontFamily: 'Arial, Verdana, sans-serif'
  202. }
  203. }