app-ecahrts.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. //不同综合风险等级货物对应不同航线比例---柱状图
  2. export const eleCake = {
  3. tooltip: {},
  4. // legend: {
  5. // data: ['一月销量', '二月销量'],
  6. // right: '25%',
  7. // },
  8. grid: {
  9. left: '3%',
  10. right: '4%',
  11. bottom: '5%',
  12. containLabel: true
  13. },
  14. xAxis: {
  15. axisTick: {
  16. alignWithLabel: true
  17. },
  18. data: ["PEK", "CTU", "NTG", "NZH", "ORD", "OTP", "OVB", "PAP", "CTU", "NTG", "NZH", "OTP", "PEK", "PEK", "PEK", "PEK", "PEK", "PEK"]
  19. },
  20. yAxis: {
  21. splitLine: {
  22. lineStyle: {
  23. type: 'dashed'
  24. }
  25. }
  26. },
  27. series: [{
  28. name: '',
  29. type: 'bar',
  30. stack: '业务',
  31. barWidth: '24px',
  32. itemStyle: {
  33. normal: {
  34. //这里是重点
  35. color: "#F3C742"
  36. }
  37. },
  38. data: [630, 20, 36, 10, 10, 20]
  39. },
  40. {
  41. name: '',
  42. type: 'bar',
  43. stack: '业务',
  44. barWidth: '24px',
  45. itemStyle: {
  46. normal: {
  47. //这里是重点
  48. color: "#EE50A6"
  49. }
  50. },
  51. data: [300, 25, 26, 20, 10, 20]
  52. },
  53. ]
  54. }
  55. //不同综合风险等级货物分布比例----饼图
  56. export const pillar = {
  57. tooltip: {
  58. trigger: 'item'
  59. },
  60. title: {
  61. text: '主标题',
  62. // 副标题
  63. subtext: "50%",
  64. // 主副标题间距
  65. itemGap: 12,
  66. x: 'center',
  67. y: 'center',
  68. top: '35%',
  69. // 主标题样式
  70. textStyle: {
  71. fontSize: '16',
  72. color: '#ffffff'
  73. },
  74. // itemStyle: {
  75. // normal: {
  76. // borderColor: 'red', //背景色
  77. // }
  78. // },
  79. // 副标题样式
  80. subtextStyle: {
  81. fontSize: '20',
  82. fontWeight: '800',
  83. color: '#ffffff'
  84. }
  85. },
  86. series: [
  87. {
  88. name: 'Access From',
  89. type: 'pie',
  90. radius: ['60%', '90%'],
  91. avoidLabelOverlap: false,
  92. label: {
  93. show: false,
  94. position: 'center'
  95. },
  96. emphasis: {
  97. label: {
  98. show: false,
  99. fontSize: '40',
  100. fontWeight: 'bold'
  101. }
  102. },
  103. labelLine: {
  104. show: false
  105. },
  106. data: [
  107. ]
  108. },
  109. {
  110. name: '总数',
  111. type: 'pie',
  112. // silent: 'ture',
  113. radius: ['0%', '50%'],
  114. avoidLabelOverlap: false,
  115. itemStyle: {
  116. normal: {
  117. color: '#383C54'
  118. }
  119. },
  120. label: {
  121. show: false,
  122. position: 'center'
  123. },
  124. // 自定义中心内容的话需要把这个关闭
  125. emphasis: {
  126. label: {
  127. show: false,
  128. fontSize: '30',
  129. fontWeight: 'bold'
  130. }
  131. },
  132. labelLine: {
  133. show: false
  134. },
  135. data: [
  136. { value: 100 },
  137. ]
  138. }
  139. ],
  140. }
  141. export const pillars = {
  142. title: {
  143. text: '主标题',
  144. // 副标题
  145. subtext: "50%",
  146. // 主副标题间距
  147. itemGap: 12,
  148. x: 'center',
  149. y: 'center',
  150. top: '35%',
  151. // 主标题样式
  152. textStyle: {
  153. fontSize: '16',
  154. color: '#ffffff'
  155. },
  156. // itemStyle: {
  157. // normal: {
  158. // borderColor: 'red', //背景色
  159. // }
  160. // },
  161. // 副标题样式
  162. subtextStyle: {
  163. fontSize: '20',
  164. fontWeight: '800',
  165. color: '#ffffff'
  166. }
  167. },
  168. series: [
  169. {
  170. name: '访问来源',
  171. type: 'pie',
  172. radius: ['65%', '90%'],
  173. avoidLabelOverlap: false,
  174. silent: 'ture',
  175. label: {
  176. show: false,
  177. position: 'center'
  178. },
  179. color: [],
  180. // itemStyle: {
  181. // normal: {
  182. // color: ['#6161BD', '#E7EBF4']
  183. // }
  184. // },
  185. // 自定义中心内容的话需要把这个关闭
  186. emphasis: {
  187. label: {
  188. show: false,
  189. fontSize: '30',
  190. fontWeight: 'bold'
  191. }
  192. },
  193. labelLine: {
  194. show: false
  195. },
  196. data: [
  197. ]
  198. },
  199. {
  200. name: '访问来源',
  201. type: 'pie',
  202. silent: 'ture',
  203. radius: ['0%', '55%'],
  204. avoidLabelOverlap: false,
  205. itemStyle: {
  206. normal: {
  207. color: '#383C54'
  208. }
  209. },
  210. label: {
  211. show: false,
  212. position: 'center'
  213. },
  214. // 自定义中心内容的话需要把这个关闭
  215. emphasis: {
  216. label: {
  217. show: false,
  218. fontSize: '30',
  219. fontWeight: 'bold'
  220. }
  221. },
  222. labelLine: {
  223. show: false
  224. },
  225. data: [
  226. { value: 100 },
  227. ]
  228. }
  229. ]
  230. }
  231. //安检通道综合效率----柱状图
  232. export const discoloration = {
  233. grid: {
  234. left: '3%',
  235. right: '4%',
  236. bottom: '3%',
  237. containLabel: true
  238. },
  239. backgroundColor: "rgba(223,227,234, 0.15)",
  240. //这里就不重要了,可以删掉
  241. color: ['#c23531', '#2f4554', '#61a0a8'],
  242. xAxis: {
  243. type: 'category',
  244. data: ['通道A', '通道B', '通道C', '通道D', '通道E']
  245. },
  246. yAxis: {
  247. splitLine: {
  248. lineStyle: {
  249. type: 'dashed',
  250. color: '#B0B3C3'
  251. }
  252. }
  253. },
  254. series: [{
  255. data: [120, 200, 150, 80, 70],
  256. type: 'bar',
  257. itemStyle: {
  258. normal: {
  259. //这里是重点
  260. color: function (params) {
  261. //注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
  262. var colorList = ['#ECBF79', '#6CDDAF', '#6D94E4', '#A46DBE', '#DB4E4E'];
  263. return colorList[params.dataIndex]
  264. }
  265. }
  266. }
  267. }]
  268. }
  269. //安检通道综合效率----柱状图
  270. export const discolorationcops = {
  271. tooltip: {},
  272. // legend: {
  273. // data: ['一月销量', '二月销量'],
  274. // right: '25%',
  275. // },
  276. grid: {
  277. left: '1%',
  278. right: '0%',
  279. bottom: '3%',
  280. top: "10%",
  281. containLabel: true
  282. },
  283. xAxis: {
  284. axisTick: {
  285. alignWithLabel: true
  286. },
  287. data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18"]
  288. },
  289. yAxis: {
  290. splitLine: {
  291. lineStyle: {
  292. type: 'dashed'
  293. }
  294. }
  295. },
  296. series: [{
  297. name: '',
  298. type: 'bar',
  299. stack: '业务',
  300. barWidth: '24px',
  301. itemStyle: {
  302. normal: {
  303. //这里是重点
  304. color: "#5D6AB6"
  305. }
  306. },
  307. data: [630, 20, 36, 10, 10, 20, 630, 20, 36, 10, 10, 20, 630, 20, 36, 10, 10, 20]
  308. },
  309. ]
  310. }
  311. //安检通道综合效率----柱状图
  312. export const discolorationcopy = {
  313. tooltip: {},
  314. // legend: {
  315. // data: ['一月销量', '二月销量'],
  316. // right: '25%',
  317. // },
  318. grid: {
  319. left: '1%',
  320. right: '0%',
  321. bottom: '3%',
  322. top: "10%",
  323. containLabel: true
  324. },
  325. xAxis: {
  326. axisTick: {
  327. alignWithLabel: true
  328. },
  329. data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18"]
  330. },
  331. yAxis: {
  332. splitLine: {
  333. lineStyle: {
  334. type: 'dashed'
  335. }
  336. }
  337. },
  338. series: [{
  339. name: '',
  340. type: 'bar',
  341. stack: '业务',
  342. barWidth: '24px',
  343. itemStyle: {
  344. normal: {
  345. //这里是重点
  346. color: "#66AAD6"
  347. }
  348. },
  349. data: [630, 20, 36, 10, 10, 20, 630, 20, 36, 10, 10, 20, 630, 20, 36, 10, 10, 20]
  350. },
  351. ]
  352. }