purple-passion.js 12 KB

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