dark.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. (function (root, factory) {
  2. if (typeof define === 'function' && define.amd) {
  3. // AMD. Register as an anonymous module.
  4. define(['exports', 'echarts'], factory);
  5. } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
  6. // CommonJS
  7. factory(exports, require('echarts'));
  8. } else {
  9. // Browser globals
  10. factory({}, root.echarts);
  11. }
  12. }(this, function (exports, echarts) {
  13. var log = function (msg) {
  14. if (typeof console !== 'undefined') {
  15. console && console.error && console.error(msg);
  16. }
  17. };
  18. if (!echarts) {
  19. log('ECharts is not Loaded');
  20. return;
  21. }
  22. echarts.registerTheme('dark', {
  23. "color": [
  24. "#fc97af",
  25. "#87f7cf",
  26. "#f7f494",
  27. "#72ccff",
  28. "#f7c5a0",
  29. "#d4a4eb",
  30. "#d2f5a6",
  31. "#76f2f2",
  32. "#dd6b66",
  33. "#759aa0",
  34. "#e69d87",
  35. "#8dc1a9",
  36. "#ea7e53",
  37. "#eedd78",
  38. "#73a373",
  39. "#73b9bc",
  40. "#7289ab",
  41. "#91ca8c",
  42. "#f49f42"
  43. ],
  44. "backgroundColor": "transparent",
  45. "textStyle": {},
  46. "title": {
  47. "textStyle": {
  48. "color": "#eeeeee"
  49. },
  50. "subtextStyle": {
  51. "color": "#aaaaaa"
  52. }
  53. },
  54. "line": {
  55. "itemStyle": {
  56. "borderWidth": 1
  57. },
  58. "lineStyle": {
  59. "width": 2
  60. },
  61. "symbolSize": 4,
  62. "symbol": "circle",
  63. "smooth": false
  64. },
  65. "radar": {
  66. "itemStyle": {
  67. "borderWidth": 1
  68. },
  69. "lineStyle": {
  70. "width": 2
  71. },
  72. "symbolSize": 4,
  73. "symbol": "circle",
  74. "smooth": false
  75. },
  76. "bar": {
  77. "itemStyle": {
  78. "barBorderWidth": 0,
  79. "barBorderColor": "#ccc"
  80. }
  81. },
  82. "pie": {
  83. "itemStyle": {
  84. "borderWidth": 0,
  85. "borderColor": "#ccc"
  86. }
  87. },
  88. "scatter": {
  89. "itemStyle": {
  90. "borderWidth": 0,
  91. "borderColor": "#ccc"
  92. }
  93. },
  94. "boxplot": {
  95. "itemStyle": {
  96. "borderWidth": 0,
  97. "borderColor": "#ccc"
  98. }
  99. },
  100. "parallel": {
  101. "itemStyle": {
  102. "borderWidth": 0,
  103. "borderColor": "#ccc"
  104. }
  105. },
  106. "sankey": {
  107. "itemStyle": {
  108. "borderWidth": 0,
  109. "borderColor": "#ccc"
  110. }
  111. },
  112. "funnel": {
  113. "itemStyle": {
  114. "borderWidth": 0,
  115. "borderColor": "#ccc"
  116. }
  117. },
  118. "gauge": {
  119. "itemStyle": {
  120. "borderWidth": 0,
  121. "borderColor": "#ccc"
  122. }
  123. },
  124. "candlestick": {
  125. "itemStyle": {
  126. "color": "#fd1050",
  127. "color0": "#0cf49b",
  128. "borderColor": "#fd1050",
  129. "borderColor0": "#0cf49b",
  130. "borderWidth": 1
  131. }
  132. },
  133. "graph": {
  134. "itemStyle": {
  135. "borderWidth": 0,
  136. "borderColor": "#ccc"
  137. },
  138. "lineStyle": {
  139. "width": 1,
  140. "color": "#aaa"
  141. },
  142. "symbolSize": 4,
  143. "symbol": "circle",
  144. "smooth": false,
  145. "color": [
  146. "#dd6b66",
  147. "#759aa0",
  148. "#e69d87",
  149. "#8dc1a9",
  150. "#ea7e53",
  151. "#eedd78",
  152. "#73a373",
  153. "#73b9bc",
  154. "#7289ab",
  155. "#91ca8c",
  156. "#f49f42"
  157. ],
  158. "label": {
  159. "color": "#eee"
  160. }
  161. },
  162. "map": {
  163. "itemStyle": {
  164. "areaColor": "#eee",
  165. "borderColor": "#444",
  166. "borderWidth": 0.5
  167. },
  168. "label": {
  169. "color": "#000"
  170. },
  171. "emphasis": {
  172. "itemStyle": {
  173. "areaColor": "rgba(255,215,0,0.8)",
  174. "borderColor": "#444",
  175. "borderWidth": 1
  176. },
  177. "label": {
  178. "color": "rgb(100,0,0)"
  179. }
  180. }
  181. },
  182. "geo": {
  183. "itemStyle": {
  184. "areaColor": "#eee",
  185. "borderColor": "#444",
  186. "borderWidth": 0.5
  187. },
  188. "label": {
  189. "color": "#000"
  190. },
  191. "emphasis": {
  192. "itemStyle": {
  193. "areaColor": "rgba(255,215,0,0.8)",
  194. "borderColor": "#444",
  195. "borderWidth": 1
  196. },
  197. "label": {
  198. "color": "rgb(100,0,0)"
  199. }
  200. }
  201. },
  202. "categoryAxis": {
  203. "axisLine": {
  204. "show": true,
  205. "lineStyle": {
  206. "color": "#eeeeee"
  207. }
  208. },
  209. "axisTick": {
  210. "show": true,
  211. "lineStyle": {
  212. "color": "#eeeeee"
  213. }
  214. },
  215. "axisLabel": {
  216. "show": true,
  217. "color": "#eeeeee"
  218. },
  219. "splitLine": {
  220. "show": false,
  221. "lineStyle": {
  222. "color": [
  223. "#aaaaaa"
  224. ]
  225. }
  226. },
  227. "splitArea": {
  228. "show": false,
  229. "areaStyle": {
  230. "color": [
  231. "#eeeeee"
  232. ]
  233. }
  234. }
  235. },
  236. "valueAxis": {
  237. "axisLine": {
  238. "show": true,
  239. "lineStyle": {
  240. "color": "#eeeeee"
  241. }
  242. },
  243. "axisTick": {
  244. "show": true,
  245. "lineStyle": {
  246. "color": "#eeeeee"
  247. }
  248. },
  249. "axisLabel": {
  250. "show": true,
  251. "color": "#eeeeee"
  252. },
  253. "splitLine": {
  254. "show": true,
  255. "lineStyle": {
  256. "color": [
  257. "#57617B"
  258. ]
  259. }
  260. },
  261. "splitArea": {
  262. "show": false,
  263. "areaStyle": {
  264. "color": [
  265. "#eeeeee"
  266. ]
  267. }
  268. }
  269. },
  270. "logAxis": {
  271. "axisLine": {
  272. "show": true,
  273. "lineStyle": {
  274. "color": "#eeeeee"
  275. }
  276. },
  277. "axisTick": {
  278. "show": true,
  279. "lineStyle": {
  280. "color": "#eeeeee"
  281. }
  282. },
  283. "axisLabel": {
  284. "show": true,
  285. "color": "#eeeeee"
  286. },
  287. "splitLine": {
  288. "show": true,
  289. "lineStyle": {
  290. "color": [
  291. "#aaaaaa"
  292. ]
  293. }
  294. },
  295. "splitArea": {
  296. "show": false,
  297. "areaStyle": {
  298. "color": [
  299. "#eeeeee"
  300. ]
  301. }
  302. }
  303. },
  304. "timeAxis": {
  305. "axisLine": {
  306. "show": true,
  307. "lineStyle": {
  308. "color": "#eeeeee"
  309. }
  310. },
  311. "axisTick": {
  312. "show": true,
  313. "lineStyle": {
  314. "color": "#eeeeee"
  315. }
  316. },
  317. "axisLabel": {
  318. "show": true,
  319. "color": "#eeeeee"
  320. },
  321. "splitLine": {
  322. "show": true,
  323. "lineStyle": {
  324. "color": [
  325. "#aaaaaa"
  326. ]
  327. }
  328. },
  329. "splitArea": {
  330. "show": false,
  331. "areaStyle": {
  332. "color": [
  333. "#eeeeee"
  334. ]
  335. }
  336. }
  337. },
  338. "toolbox": {
  339. "iconStyle": {
  340. "borderColor": "#999"
  341. },
  342. "emphasis": {
  343. "iconStyle": {
  344. "borderColor": "#666"
  345. }
  346. }
  347. },
  348. "legend": {
  349. "textStyle": {
  350. "color": "#eeeeee"
  351. }
  352. },
  353. "tooltip": {
  354. "axisPointer": {
  355. "lineStyle": {
  356. "color": "#eeeeee",
  357. "width": "1"
  358. },
  359. "crossStyle": {
  360. "color": "#eeeeee",
  361. "width": "1"
  362. }
  363. }
  364. },
  365. "timeline": {
  366. "lineStyle": {
  367. "color": "#eeeeee",
  368. "width": 1
  369. },
  370. "itemStyle": {
  371. "color": "#dd6b66",
  372. "borderWidth": 1
  373. },
  374. "controlStyle": {
  375. "color": "#eeeeee",
  376. "borderColor": "#eeeeee",
  377. "borderWidth": 0.5
  378. },
  379. "checkpointStyle": {
  380. "color": "#e43c59",
  381. "borderColor": "#c23531"
  382. },
  383. "label": {
  384. "color": "#eeeeee"
  385. },
  386. "emphasis": {
  387. "itemStyle": {
  388. "color": "#a9334c"
  389. },
  390. "controlStyle": {
  391. "color": "#eeeeee",
  392. "borderColor": "#eeeeee",
  393. "borderWidth": 0.5
  394. },
  395. "label": {
  396. "color": "#eeeeee"
  397. }
  398. }
  399. },
  400. "visualMap": {
  401. "color": [
  402. "#bf444c",
  403. "#d88273",
  404. "#f6efa6"
  405. ]
  406. },
  407. "dataZoom": {
  408. "backgroundColor": "rgba(47,69,84,0)",
  409. "dataBackgroundColor": "rgba(255,255,255,0.3)",
  410. "fillerColor": "rgba(167,183,204,0.4)",
  411. "handleColor": "#a7b7cc",
  412. "handleSize": "100%",
  413. "textStyle": {
  414. "color": "#eeeeee"
  415. }
  416. },
  417. "markPoint": {
  418. "label": {
  419. "color": "#eee"
  420. },
  421. "emphasis": {
  422. "label": {
  423. "color": "#eee"
  424. }
  425. }
  426. }
  427. });
  428. }));