物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

441 lines
11 KiB

  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('macarons', {
  23. "color": [
  24. "#2ec7c9",
  25. "#b6a2de",
  26. "#5ab1ef",
  27. "#ffb980",
  28. "#d87a80",
  29. "#8d98b3",
  30. "#e5cf0d",
  31. "#97b552",
  32. "#95706d",
  33. "#dc69aa",
  34. "#07a2a4",
  35. "#9a7fd1",
  36. "#588dd5",
  37. "#f5994e",
  38. "#c05050",
  39. "#59678c",
  40. "#c9ab00",
  41. "#7eb00a",
  42. "#6f5553",
  43. "#c14089"
  44. ],
  45. "backgroundColor": "rgba(0,0,0,0)",
  46. "textStyle": {},
  47. "title": {
  48. "textStyle": {
  49. "color": "#008acd"
  50. },
  51. "subtextStyle": {
  52. "color": "#aaaaaa"
  53. }
  54. },
  55. "line": {
  56. "itemStyle": {
  57. "borderWidth": 1
  58. },
  59. "lineStyle": {
  60. "width": 2
  61. },
  62. "symbolSize": 3,
  63. "symbol": "emptyCircle",
  64. "smooth": true
  65. },
  66. "radar": {
  67. "itemStyle": {
  68. "borderWidth": 1
  69. },
  70. "lineStyle": {
  71. "width": 2
  72. },
  73. "symbolSize": 3,
  74. "symbol": "emptyCircle",
  75. "smooth": true
  76. },
  77. "bar": {
  78. "itemStyle": {
  79. "barBorderWidth": 0,
  80. "barBorderColor": "#ccc"
  81. }
  82. },
  83. "pie": {
  84. "itemStyle": {
  85. "borderWidth": 0,
  86. "borderColor": "#ccc"
  87. }
  88. },
  89. "scatter": {
  90. "itemStyle": {
  91. "borderWidth": 0,
  92. "borderColor": "#ccc"
  93. }
  94. },
  95. "boxplot": {
  96. "itemStyle": {
  97. "borderWidth": 0,
  98. "borderColor": "#ccc"
  99. }
  100. },
  101. "parallel": {
  102. "itemStyle": {
  103. "borderWidth": 0,
  104. "borderColor": "#ccc"
  105. }
  106. },
  107. "sankey": {
  108. "itemStyle": {
  109. "borderWidth": 0,
  110. "borderColor": "#ccc"
  111. }
  112. },
  113. "funnel": {
  114. "itemStyle": {
  115. "borderWidth": 0,
  116. "borderColor": "#ccc"
  117. }
  118. },
  119. "gauge": {
  120. "itemStyle": {
  121. "borderWidth": 0,
  122. "borderColor": "#ccc"
  123. }
  124. },
  125. "candlestick": {
  126. "itemStyle": {
  127. "color": "#d87a80",
  128. "color0": "#2ec7c9",
  129. "borderColor": "#d87a80",
  130. "borderColor0": "#2ec7c9",
  131. "borderWidth": 1
  132. }
  133. },
  134. "graph": {
  135. "itemStyle": {
  136. "borderWidth": 0,
  137. "borderColor": "#ccc"
  138. },
  139. "lineStyle": {
  140. "width": 1,
  141. "color": "#aaaaaa"
  142. },
  143. "symbolSize": 3,
  144. "symbol": "emptyCircle",
  145. "smooth": true,
  146. "color": [
  147. "#2ec7c9",
  148. "#b6a2de",
  149. "#5ab1ef",
  150. "#ffb980",
  151. "#d87a80",
  152. "#8d98b3",
  153. "#e5cf0d",
  154. "#97b552",
  155. "#95706d",
  156. "#dc69aa",
  157. "#07a2a4",
  158. "#9a7fd1",
  159. "#588dd5",
  160. "#f5994e",
  161. "#c05050",
  162. "#59678c",
  163. "#c9ab00",
  164. "#7eb00a",
  165. "#6f5553",
  166. "#c14089"
  167. ],
  168. "label": {
  169. "color": "#eeeeee"
  170. }
  171. },
  172. "map": {
  173. "itemStyle": {
  174. "areaColor": "#dddddd",
  175. "borderColor": "#eeeeee",
  176. "borderWidth": 0.5
  177. },
  178. "label": {
  179. "color": "#d87a80"
  180. },
  181. "emphasis": {
  182. "itemStyle": {
  183. "areaColor": "rgba(254,153,78,1)",
  184. "borderColor": "#444",
  185. "borderWidth": 1
  186. },
  187. "label": {
  188. "color": "rgb(100,0,0)"
  189. }
  190. }
  191. },
  192. "geo": {
  193. "itemStyle": {
  194. "areaColor": "#dddddd",
  195. "borderColor": "#eeeeee",
  196. "borderWidth": 0.5
  197. },
  198. "label": {
  199. "color": "#d87a80"
  200. },
  201. "emphasis": {
  202. "itemStyle": {
  203. "areaColor": "rgba(254,153,78,1)",
  204. "borderColor": "#444",
  205. "borderWidth": 1
  206. },
  207. "label": {
  208. "color": "rgb(100,0,0)"
  209. }
  210. }
  211. },
  212. "categoryAxis": {
  213. "axisLine": {
  214. "show": true,
  215. "lineStyle": {
  216. "color": "#008acd"
  217. }
  218. },
  219. "axisTick": {
  220. "show": true,
  221. "lineStyle": {
  222. "color": "#333"
  223. }
  224. },
  225. "axisLabel": {
  226. "show": true,
  227. "color": "#333"
  228. },
  229. "splitLine": {
  230. "show": false,
  231. "lineStyle": {
  232. "color": [
  233. "#eee"
  234. ]
  235. }
  236. },
  237. "splitArea": {
  238. "show": false,
  239. "areaStyle": {
  240. "color": [
  241. "rgba(250,250,250,0.3)",
  242. "rgba(200,200,200,0.3)"
  243. ]
  244. }
  245. }
  246. },
  247. "valueAxis": {
  248. "axisLine": {
  249. "show": true,
  250. "lineStyle": {
  251. "color": "#008acd"
  252. }
  253. },
  254. "axisTick": {
  255. "show": true,
  256. "lineStyle": {
  257. "color": "#333"
  258. }
  259. },
  260. "axisLabel": {
  261. "show": true,
  262. "color": "#333"
  263. },
  264. "splitLine": {
  265. "show": true,
  266. "lineStyle": {
  267. "color": [
  268. "#eee"
  269. ]
  270. }
  271. },
  272. "splitArea": {
  273. "show": true,
  274. "areaStyle": {
  275. "color": [
  276. "rgba(250,250,250,0.3)",
  277. "rgba(200,200,200,0.3)"
  278. ]
  279. }
  280. }
  281. },
  282. "logAxis": {
  283. "axisLine": {
  284. "show": true,
  285. "lineStyle": {
  286. "color": "#008acd"
  287. }
  288. },
  289. "axisTick": {
  290. "show": true,
  291. "lineStyle": {
  292. "color": "#333"
  293. }
  294. },
  295. "axisLabel": {
  296. "show": true,
  297. "color": "#333"
  298. },
  299. "splitLine": {
  300. "show": true,
  301. "lineStyle": {
  302. "color": [
  303. "#eee"
  304. ]
  305. }
  306. },
  307. "splitArea": {
  308. "show": true,
  309. "areaStyle": {
  310. "color": [
  311. "rgba(250,250,250,0.3)",
  312. "rgba(200,200,200,0.3)"
  313. ]
  314. }
  315. }
  316. },
  317. "timeAxis": {
  318. "axisLine": {
  319. "show": true,
  320. "lineStyle": {
  321. "color": "#008acd"
  322. }
  323. },
  324. "axisTick": {
  325. "show": true,
  326. "lineStyle": {
  327. "color": "#333"
  328. }
  329. },
  330. "axisLabel": {
  331. "show": true,
  332. "color": "#333"
  333. },
  334. "splitLine": {
  335. "show": true,
  336. "lineStyle": {
  337. "color": [
  338. "#eee"
  339. ]
  340. }
  341. },
  342. "splitArea": {
  343. "show": false,
  344. "areaStyle": {
  345. "color": [
  346. "rgba(250,250,250,0.3)",
  347. "rgba(200,200,200,0.3)"
  348. ]
  349. }
  350. }
  351. },
  352. "toolbox": {
  353. "iconStyle": {
  354. "borderColor": "#2ec7c9"
  355. },
  356. "emphasis": {
  357. "iconStyle": {
  358. "borderColor": "#18a4a6"
  359. }
  360. }
  361. },
  362. "legend": {
  363. "textStyle": {
  364. "color": "#333333"
  365. }
  366. },
  367. "tooltip": {
  368. "axisPointer": {
  369. "lineStyle": {
  370. "color": "#008acd",
  371. "width": "1"
  372. },
  373. "crossStyle": {
  374. "color": "#008acd",
  375. "width": "1"
  376. }
  377. }
  378. },
  379. "timeline": {
  380. "lineStyle": {
  381. "color": "#008acd",
  382. "width": 1
  383. },
  384. "itemStyle": {
  385. "color": "#008acd",
  386. "borderWidth": 1
  387. },
  388. "controlStyle": {
  389. "color": "#008acd",
  390. "borderColor": "#008acd",
  391. "borderWidth": 0.5
  392. },
  393. "checkpointStyle": {
  394. "color": "#2ec7c9",
  395. "borderColor": "#2ec7c9"
  396. },
  397. "label": {
  398. "color": "#008acd"
  399. },
  400. "emphasis": {
  401. "itemStyle": {
  402. "color": "#a9334c"
  403. },
  404. "controlStyle": {
  405. "color": "#008acd",
  406. "borderColor": "#008acd",
  407. "borderWidth": 0.5
  408. },
  409. "label": {
  410. "color": "#008acd"
  411. }
  412. }
  413. },
  414. "visualMap": {
  415. "color": [
  416. "#5ab1ef",
  417. "#e0ffff"
  418. ]
  419. },
  420. "dataZoom": {
  421. "backgroundColor": "rgba(47,69,84,0)",
  422. "dataBackgroundColor": "#efefff",
  423. "fillerColor": "rgba(182,162,222,0.2)",
  424. "handleColor": "#008acd",
  425. "handleSize": "100%",
  426. "textStyle": {
  427. "color": "#333333"
  428. }
  429. },
  430. "markPoint": {
  431. "label": {
  432. "color": "#eeeeee"
  433. },
  434. "emphasis": {
  435. "label": {
  436. "color": "#eeeeee"
  437. }
  438. }
  439. }
  440. });
  441. }));