closeCase.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. function closeCase() {
  2. var chartDom = document.getElementById("ajjachart");
  3. var myChart = echarts.init(chartDom);
  4. var option;
  5. myChart.clear();
  6. option = {
  7. tooltip: {
  8. trigger: "axis",
  9. axisPointer: {
  10. type: "shadow",
  11. },
  12. backgroundColor: "rgb(0 0 0 / 40%)",
  13. borderColor: "transparent",
  14. textStyle: {
  15. color: "#fff",
  16. },
  17. confine: true,
  18. },
  19. legend: {},
  20. grid: {
  21. left: "3%",
  22. right: "4%",
  23. bottom: "3%",
  24. containLabel: true,
  25. },
  26. xAxis: {
  27. type: "category",
  28. boundaryGap: [0, 0.01],
  29. data: [
  30. "2022年一季度",
  31. "2022年二季度",
  32. "2022年三季度",
  33. "2022年全年",
  34. "2023年一季度",
  35. "2023年二季度",
  36. "2023年三季度",
  37. "2023年四季度",
  38. "2024年一季度",
  39. "2024年二季度",
  40. "2024年三季度",
  41. "2024年四季度",
  42. "2025年一季度"
  43. ],
  44. },
  45. yAxis: [
  46. {
  47. type: "value",
  48. axisLabel: {
  49. formatter: "{value} 件",
  50. },
  51. },
  52. {
  53. type: "value",
  54. axisLabel: {
  55. formatter: "{value} 人",
  56. },
  57. },
  58. ],
  59. series: [
  60. {
  61. name: "纠纷总数",
  62. type: "bar",
  63. data: [1285, 2257, 3370, 5085, 1375, 3057, 4592, 7911, 2272, 4294,6139,8309,3670],
  64. yAxisIndex: 0,
  65. tooltip: {
  66. valueFormatter: function (value) {
  67. return value + " 件";
  68. },
  69. },
  70. },
  71. {
  72. name: "涉及人数",
  73. type: "bar",
  74. data: [1285, 2257, 3370, 5210, 1401, 3142, 4625, 8000, 2300, 4311,6300,8500,4000],
  75. yAxisIndex: 1,
  76. tooltip: {
  77. valueFormatter: function (value) {
  78. return value + " 人";
  79. },
  80. },
  81. },
  82. {
  83. name: "结案数量",
  84. type: "bar",
  85. data: [921, 1903, 2974, 4831, 972, 2262, 3922, 7120, 1857, 3465,5316,7894,3356],
  86. yAxisIndex: 0,
  87. tooltip: {
  88. valueFormatter: function (value) {
  89. return value + " 件";
  90. },
  91. },
  92. },
  93. ],
  94. };
  95. option && myChart.setOption(option);
  96. var chartDom = document.getElementById("arbitrate");
  97. var myChart = echarts.init(chartDom);
  98. var option;
  99. myChart.clear();
  100. option = {
  101. tooltip: {
  102. trigger: "axis",
  103. axisPointer: {
  104. type: "shadow",
  105. },
  106. backgroundColor: "rgb(0 0 0 / 40%)",
  107. borderColor: "transparent",
  108. textStyle: {
  109. color: "#fff",
  110. },
  111. confine: true,
  112. },
  113. legend: {
  114. show: false,
  115. },
  116. grid: {
  117. left: "3%",
  118. right: "4%",
  119. bottom: "3%",
  120. containLabel: true,
  121. },
  122. xAxis: {
  123. type: "category",
  124. boundaryGap: [0, 0.01],
  125. data: [
  126. "2022年一季度",
  127. "2022年二季度",
  128. "2022年三季度",
  129. "2022年全年",
  130. "2023年一季度",
  131. "2023年二季度",
  132. "2023年三季度",
  133. "2023年四季度",
  134. "2024年一季度",
  135. "2024年二季度",
  136. "2024年三季度",
  137. "2024年四季度",
  138. "2025年一季度"
  139. ],
  140. axisLabel: {
  141. rotate: 30,
  142. },
  143. },
  144. yAxis: {
  145. type: "value",
  146. axisLabel: {
  147. formatter: "{value} 件",
  148. },
  149. },
  150. series: [
  151. {
  152. name: "仲裁裁决数",
  153. type: "bar",
  154. data: [49, 161, 290, 386, 57, 177, 306, 371, 128, 281,461,686,79],
  155. tooltip: {
  156. valueFormatter: function (value) {
  157. return value + " 件";
  158. },
  159. },
  160. },
  161. ],
  162. };
  163. option && myChart.setOption(option);
  164. var chartDom = document.getElementById("closingRate");
  165. var myChart = echarts.init(chartDom);
  166. var option;
  167. option = {
  168. tooltip: {
  169. trigger: "axis",
  170. axisPointer: {
  171. type: "shadow",
  172. },
  173. backgroundColor: "rgb(0 0 0 / 40%)",
  174. borderColor: "transparent",
  175. textStyle: {
  176. color: "#fff",
  177. },
  178. confine: true,
  179. },
  180. grid: {
  181. left: "3%",
  182. right: "4%",
  183. bottom: "3%",
  184. containLabel: true,
  185. },
  186. xAxis: {
  187. type: "category",
  188. data: [
  189. "2022年一季度",
  190. "2022年二季度",
  191. "2022年三季度",
  192. "2022年全年",
  193. "2023年一季度",
  194. "2023年二季度",
  195. "2023年三季度",
  196. "2023年四季度",
  197. "2024年一季度",
  198. "2024年二季度",
  199. "2024年三季度",
  200. "2024年四季度",
  201. "2025年一季度"
  202. ],
  203. axisLabel: {
  204. rotate: 30,
  205. },
  206. },
  207. yAxis: {
  208. type: "value",
  209. axisLabel: {
  210. formatter: "{value} %",
  211. },
  212. },
  213. series: [
  214. {
  215. data: [71.67, 84.31, 88.24, 95, 71, 74, 85, 90, 81.73, 80.7,86,95,91.4],
  216. type: "line",
  217. name: "结案率",
  218. itemStyle: {
  219. color: "#FB693A",
  220. },
  221. lineStyle: {
  222. color: "#FB693A",
  223. },
  224. areaStyle: {
  225. origin: "start", //向最小值方向渐变,y轴有负值要写
  226. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  227. {
  228. offset: 0,
  229. color: "rgba(251, 105, 58, 0.8)",
  230. },
  231. {
  232. offset: 1,
  233. color: "rgba(251, 105, 58, 0.1)",
  234. },
  235. ]),
  236. },
  237. tooltip: {
  238. valueFormatter: function (value) {
  239. return value + " %";
  240. },
  241. },
  242. },
  243. ],
  244. };
  245. option && myChart.setOption(option);
  246. }