public.html 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. <!doctype html>
  2. <meta charset="utf-8">
  3. <title>警情警力分析</title>
  4. <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
  5. <script src="js/echarts.min.js" charset="utf-8"></script>
  6. <body>
  7. <div class="bnt">
  8. <div class="topbnt_left fl">
  9. <ul><li ><a href="#">警情警力</a></li>
  10. <li><a href="#">实有人口</a></li>
  11. <li><a href="#">流动人口</a></li>
  12. <li><a href="#">实名制</a></li>
  13. </ul>
  14. </div>
  15. <h1 class="tith1 fl">舆情分析</h1>
  16. <div class=" fr topbnt_right">
  17. <ul>
  18. <li><a href="#">返回</a></li>
  19. <li><a href="#">分析报告</a></li>
  20. <li><a href="#">交通</a></li>
  21. <li><a href="#">舆情</a></li>
  22. </ul>
  23. </ul>
  24. </div>
  25. </div>
  26. <!-- bnt end -->
  27. <div class="puleft fl">
  28. <div class="pulefttop"><h2 class="tith2"><span>舆情来源分析</span></h2>
  29. <div class="lefttoday_tit"><p class="fl">地区:甘孜</p><p class="fr">2018-06-14</p></div>
  30. <div class="box pbox">
  31. <div class="lefttoday_bar pulefttoday_bar fl">
  32. <ul>
  33. <li class="c1 big1" style="top: 25%;left: 16%;"><span>交通警情6</span></li>
  34. <li class="c2 big2" style="top: 35%;left: 65%;"><span>求助1</span></li>
  35. <li class="c3 big4" style="top: 25%;left: 35%;"><span>无效报警2</span></li>
  36. <li class="c4 big5" style="top: 65%;left: 65%;"><span>投诉2</span></li>
  37. <li class="c5 big6" style="top: 65%;left: 25%;"><span>灾害事故1</span></li>
  38. <li class="c6 big1" style="top: 45%;left: 15%;"><span>刑事案件1</span></li>
  39. <li class="c1 big0" style="top: 35%;left: 75%;"></li>
  40. <li class="c2 big0" style="top: 85%;left: 55%;"></li>
  41. <li class="c3 big0" style="top: 85%;left: 15%;"></li>
  42. </ul>
  43. </div>
  44. <div class="pvr fr pulefttoday_bar2" >
  45. <ul>
  46. <li class="hot1">1</li>
  47. <li class="hot2">2</li>
  48. <li class="hot3">3</li>
  49. <li class="hot4">4</li>
  50. <li class="hot5">5</li>
  51. </ul>
  52. <div id="puleftbox2bott_cont" class="puleftbox2bott_cont" ></div>
  53. </div>
  54. </div>
  55. <!-- lefttoday_number end -->
  56. </div>
  57. <div class="puleftboxtmidd">
  58. <h2 class="tith2">舆情区域分析</h2>
  59. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div>
  60. <div class="box pbox">
  61. <div id="puleftboxtmidd1" class="fl puleftboxtmidd1"></div>
  62. <div class="pvr fr pulefttoday_bar2" >
  63. <ul>
  64. <li class="hot1">1</li>
  65. <li class="hot2">2</li>
  66. <li class="hot3">3</li>
  67. <li class="hot4">4</li>
  68. <li class="hot5">5</li>
  69. </ul>
  70. <div id="puleftboxtmidd2" class="puleftbox2bott_cont"></div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="puleftboxtbott">
  75. <h2 class="tith2 pt1">舆情环比分析</h2>
  76. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div>
  77. <div class="box pbox">
  78. <div id="puleftboxtbott1" class="fl puleftboxtbott1" ></div>
  79. <div class="puleftboxtbott2 fr" >
  80. <div class="widget-inline-box text-center ">
  81. <p>今日舆情总数</p>
  82. <h3 class=" ceeb1fd">54</h3>
  83. <h4 class="text-muted ">环比<img src="img/iconup.png" height="16" />2%</h4>
  84. </div>
  85. <div class="widget-inline-box text-center ">
  86. <p>本周舆情总数</p>
  87. <h3 class=" c24c9ff">54</h3>
  88. <h4 class="text-muted ">环比<img src="img/icondown.png" height="16" />3%</h4>
  89. </div>
  90. <div class="widget-inline-box text-center ">
  91. <p>本月舆情总数</p>
  92. <h3 class=" cffff00">4</h3>
  93. <h4 class="text-muted ">环比<img src="img/icondown.png" height="16" />3%</h4>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <!-- left1 end -->
  100. <div class="fl pt6 puleft2">
  101. <div class="pmidd_bott">
  102. <div class="pumiddboxttop1 fl">
  103. <h2 class="tith2 pt3">今日舆情</h2>
  104. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div>
  105. <div class="puleft2height">
  106. <div class="widget-inline-box text-center ">
  107. <p>今日舆情总数</p>
  108. <h3 class=" ceeb1fd f30">54</h3>
  109. <h4 class="text-muted ">环比<img src="img/iconup.png" height="16" />2%</h4>
  110. </div>
  111. <div class="widget-inline-box text-center ">
  112. <p>本周舆情总数</p>
  113. <h3 class=" c24c9ff f30">54</h3>
  114. <h4 class="text-muted ">环比<img src="img/icondown.png" height="16" />3%</h4>
  115. </div>
  116. <div class="widget-inline-box text-center ">
  117. <p>本月舆情总数</p>
  118. <h3 class=" cffff00 f30">4</h3>
  119. <h4 class="text-muted ">环比<img src="img/icondown.png" height="16" />3%</h4>
  120. </div>
  121. <div class="widget-inline-box text-center ">
  122. <p>今日舆情总数</p>
  123. <h3 class=" ceeb1fd f30">54</h3>
  124. <h4 class="text-muted ">环比<img src="img/iconup.png" height="16" />2%</h4>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="pumiddboxttop2 fl">
  129. <h2 class="tith2 pt3">热门信息</h2>
  130. <div class="lefttoday_tit "><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div>
  131. <div class="left2_table pumiddboxttop2_cont">
  132. <ul>
  133. <li>
  134. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  135. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  136. </li>
  137. <li class="bg">
  138. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  139. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  140. </li>
  141. <li>
  142. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  143. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  144. </li>
  145. <li class="bg">
  146. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  147. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  148. </li>
  149. <li>
  150. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  151. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  152. </li>
  153. <li class="bg">
  154. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  155. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  156. </li>
  157. <li>
  158. <p class="text_l">村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。</p>
  159. <p class="text_r">新浪微博 转发:86 2018-06-14 11:08:56</p>
  160. </li>
  161. </ul>
  162. </div>
  163. </div>
  164. </div>
  165. <!-- amidd_bott end-->
  166. <div class="pmiddboxtbott" >
  167. <h2 class="tith2 pt1">舆情同比分析</h2>
  168. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div>
  169. <div class="box pbox">
  170. <div id="pumiddboxtbott1" class="fl pumiddboxtbott1cont"></div>
  171. <div class="pumiddboxtbott2 fr" >
  172. <div class="widget-inline-box text-center ">
  173. <p>今年舆情总数</p>
  174. <h3 class=" ceeb1fd f30">54</h3>
  175. <h4 class="text-muted ">环比<img src="img/iconup.png" height="16" />2%</h4>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <!-- amidd_bott end -->
  181. </div>
  182. <!-- mrbox_top end -->
  183. <div class="mr_right fl">
  184. <div class="purightboxtop"><h2 class="tith2 pt12">舆情类别分析</h2>
  185. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div>
  186. <div id="purightboxtop" class="purightboxtopcont"></div>
  187. </div>
  188. <div class="purightboxmidd"><h2 class="tith2 pt12">七日舆情走势分析</h2>
  189. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div>
  190. <div id="purightboxmidd" class="purightboxmiddcont"></div>
  191. </div>
  192. <div class="purightboxbott"><h2 class="tith2 pt12">矛盾纠纷七日数据分析</h2>
  193. <div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div>
  194. <div id="purightboxbott" class="purightboxbottcont" ></div>
  195. </div>
  196. </div>
  197. <!-- mrbox_top_right end -->
  198. </div>
  199. </div>
  200. <script type="text/javascript">
  201. var myChart = echarts.init(document.getElementById('puleftbox2bott_cont'));
  202. option = {
  203. color:['#7ecef4'],
  204. backgroundColor: 'rgba(1,202,217,.2)',
  205. grid: {
  206. left:40,
  207. right:20,
  208. top:30,
  209. bottom:0,
  210. containLabel: true
  211. },
  212. xAxis: {
  213. type: 'value',
  214. axisLine:{
  215. lineStyle:{
  216. color:'rgba(255,255,255,0)'
  217. }
  218. },
  219. splitLine:{
  220. lineStyle:{
  221. color:'rgba(255,255,255,0)'
  222. }
  223. },
  224. axisLabel:{
  225. color:"rgba(255,255,255,0)"
  226. },
  227. boundaryGap: [0, 0.01]
  228. },
  229. yAxis: {
  230. type: 'category',
  231. axisLine:{
  232. lineStyle:{
  233. color:'rgba(255,255,255,.5)'
  234. }
  235. },
  236. splitLine:{
  237. lineStyle:{
  238. color:'rgba(255,255,255,.1)'
  239. }
  240. },
  241. axisLabel:{
  242. color:"rgba(255,255,255,.5)"
  243. },
  244. data: ['微博','网站','新闻','贴吧','论坛']
  245. },
  246. series: [
  247. {
  248. name: '2011年',
  249. type: 'bar',
  250. barWidth :20,
  251. itemStyle: {
  252. normal: {
  253. color: new echarts.graphic.LinearGradient(
  254. 1, 0, 0, 1,
  255. [
  256. {offset: 0, color: 'rgba(230,253,139,.7)'},
  257. {offset: 1, color: 'rgba(41,220,205,.7)'}
  258. ]
  259. )
  260. }
  261. },
  262. data: [18203, 23489, 29034, 104970, 131744]
  263. }
  264. ]
  265. };
  266. myChart.setOption(option);
  267. </script>
  268. <script type="text/javascript">
  269. var myChart = echarts.init(document.getElementById('puleftboxtmidd1'));
  270. var data = [
  271. [5000, 10000, 6785.71],
  272. [4000, 10000, 6825],
  273. [3000, 6500, 4463.33],
  274. [2500, 5600, 3793.83],
  275. [2000, 4000, 3060],
  276. [2000, 4000, 3222.33],
  277. [2500, 4000, 3133.33],
  278. [1800, 4000, 3100],
  279. [1500, 1800, 1650]
  280. ];
  281. var cities = ['甘孜县', '泸定县', '炉霍县', '色达县', '白玉县', '得荣县', '雅江县', '九龙县', '康定市' ];
  282. var barHeight = 50;
  283. option = {
  284. color:['#7ecef4'],
  285. backgroundColor: 'rgba(1,202,217,.2)',
  286. grid: {
  287. left:60,
  288. right:60,
  289. top:60,
  290. bottom:40
  291. },
  292. legend: {
  293. show: true,
  294. data: ['价格范围', '均值']
  295. },
  296. angleAxis: {
  297. type: 'category',
  298. axisLine:{
  299. lineStyle:{
  300. color:'rgba(255,255,255,.2)'
  301. }
  302. },
  303. splitLine:{
  304. lineStyle:{
  305. color:'rgba(255,255,255,.1)'
  306. }
  307. },
  308. axisLabel:{
  309. color:"rgba(255,255,255,.7)"
  310. },
  311. data: cities
  312. },
  313. radiusAxis: {
  314. axisLine:{
  315. lineStyle:{
  316. color:'rgba(255,255,255,.2)'
  317. }
  318. },
  319. splitLine:{
  320. lineStyle:{
  321. color:'rgba(255,255,255,.1)'
  322. }
  323. },
  324. axisLabel:{
  325. color:"rgba(255,255,255,.5)"
  326. }
  327. },
  328. polar: {
  329. },
  330. series: [{
  331. type: 'bar',
  332. itemStyle: {
  333. normal: {
  334. color: 'transparent'
  335. }
  336. },
  337. data: data.map(function (d) {
  338. return d[0];
  339. }),
  340. coordinateSystem: 'polar',
  341. stack: '最大最小值',
  342. silent: true
  343. }, {
  344. type: 'bar',
  345. data: data.map(function (d) {
  346. return d[1] - d[0];
  347. }),
  348. coordinateSystem: 'polar',
  349. name: '价格范围',
  350. stack: '最大最小值'
  351. }, {
  352. type: 'bar',
  353. itemStyle: {
  354. normal: {
  355. color: 'transparent'
  356. }
  357. },
  358. data: data.map(function (d) {
  359. return d[2] - barHeight;
  360. }),
  361. coordinateSystem: 'polar',
  362. stack: '均值',
  363. silent: true,
  364. z: 10
  365. }, {
  366. type: 'bar',
  367. data: data.map(function (d) {
  368. return barHeight * 2
  369. }),
  370. coordinateSystem: 'polar',
  371. name: '均值',
  372. stack: '均值',
  373. barGap: '-100%',
  374. z: 10
  375. }],
  376. legend: {
  377. show: true,
  378. data: ['A', 'B', 'C']
  379. }
  380. };
  381. myChart.setOption(option);
  382. </script>
  383. <script type="text/javascript">
  384. var myChart = echarts.init(document.getElementById('puleftboxtmidd2'));
  385. option = {
  386. color:['#7ecef4'],
  387. backgroundColor: 'rgba(1,202,217,.2)',
  388. grid: {
  389. left:40,
  390. right:20,
  391. top:30,
  392. bottom:0,
  393. containLabel: true
  394. },
  395. xAxis: {
  396. type: 'value',
  397. axisLine:{
  398. lineStyle:{
  399. color:'rgba(255,255,255,0)'
  400. }
  401. },
  402. splitLine:{
  403. lineStyle:{
  404. color:'rgba(255,255,255,0)'
  405. }
  406. },
  407. axisLabel:{
  408. color:"rgba(255,255,255,0)"
  409. },
  410. boundaryGap: [0, 0.01]
  411. },
  412. yAxis: {
  413. type: 'category',
  414. axisLine:{
  415. lineStyle:{
  416. color:'rgba(255,255,255,.5)'
  417. }
  418. },
  419. splitLine:{
  420. lineStyle:{
  421. color:'rgba(255,255,255,.1)'
  422. }
  423. },
  424. axisLabel:{
  425. color:"rgba(255,255,255,.5)"
  426. },
  427. data: ['微博','网站','新闻','贴吧','论坛']
  428. },
  429. series: [
  430. {
  431. name: '2011年',
  432. type: 'bar',
  433. barWidth :20,
  434. itemStyle: {
  435. normal: {
  436. color: new echarts.graphic.LinearGradient(
  437. 1, 0, 0, 1,
  438. [
  439. {offset: 0, color: 'rgba(230,253,139,.7)'},
  440. {offset: 1, color: 'rgba(41,220,205,.7)'}
  441. ]
  442. )
  443. }
  444. },
  445. data: [18203, 23489, 29034, 104970, 131744]
  446. }
  447. ]
  448. };
  449. myChart.setOption(option);
  450. </script>
  451. <script type="text/javascript">
  452. var myChart = echarts.init(document.getElementById('puleftboxtbott1'));
  453. var data = [
  454. [[28604,77,17099,'Australia',1990],[31163,77.4,2440,'Canada',1990],[1516,68,1605773,'China',1990],[13670,74.7,10082,'Cuba',1990],[28599,75,49805,'Finland',1990],[29476,77.1,569499,'France',1990],[31476,75.4,789237,'Germany',1990],[28666,78.1,254830,'Iceland',1990],[1777,57.7,870776,'India',1990],[29550,79.1,129285,'Japan',1990],[2076,67.9,201954,'North Korea',1990],[12087,72,42954,'South Korea',1990],[24021,75.4,33934,'New Zealand',1990],[43296,76.8,4240375,'Norway',1990],[10088,70.8,381958,'Poland',1990],[19349,69.6,1475652,'Russia',1990],[10670,67.3,53905,'Turkey',1990],[26424,75.7,57117,'United Kingdom',1990],[37062,75.4,252810,'United States',1990]],
  455. [[44056,81.8,23973,'Australia',2015],[43294,81.7,35927,'Canada',2015],[13334,76.9,1376043,'China',2015],[21291,78.5,11562,'Cuba',2015],[38923,80.8,55057,'Finland',2015],[37599,81.9,64345,'France',2015],[44053,81.1,80545,'Germany',2015],[42182,82.8,329425,'Iceland',2015],[5903,66.8,1311027,'India',2015],[36162,83.5,126571,'Japan',2015],[1390,71.4,251317,'North Korea',2015],[34644,80.7,503439,'South Korea',2015],[34186,80.6,4528526,'New Zealand',2015],[64304,81.6,5210967,'Norway',2015],[24787,77.3,386194,'Poland',2015],[23038,73.13,143918,'Russia',2015],[19360,76.5,78630,'Turkey',2015],[38225,81.4,64715810,'United Kingdom',2015],[53354,79.1,321771,'United States',2015]]
  456. ];
  457. option = {
  458. backgroundColor: 'rgba(1,202,217,.2)',
  459. grid: {
  460. left:60,
  461. right:40,
  462. top:45,
  463. bottom:40
  464. },
  465. title: {
  466. top: 5,
  467. left:20,
  468. textStyle:{
  469. fontSize:10,
  470. color:'rgba(255,255,255,.6)'
  471. },
  472. text: '环比类型:日环比'
  473. },
  474. legend: {
  475. right: 10,
  476. top: 5,
  477. textStyle:{
  478. fontSize:10,
  479. color:'rgba(255,255,255,.6)'
  480. },
  481. data: ['1990', '2015']
  482. },
  483. xAxis: {
  484. axisLine:{
  485. lineStyle:{
  486. color:'rgba(255,255,255,.2)'
  487. }
  488. },
  489. splitLine:{
  490. lineStyle:{
  491. color:'rgba(255,255,255,.1)'
  492. }
  493. },
  494. axisLabel:{
  495. color:"rgba(255,255,255,.7)"
  496. }
  497. },
  498. yAxis: {
  499. axisLine:{
  500. lineStyle:{
  501. color:'rgba(255,255,255,.2)'
  502. }
  503. },
  504. splitLine:{
  505. lineStyle:{
  506. color:'rgba(255,255,255,.1)'
  507. }
  508. },
  509. axisLabel:{
  510. color:"rgba(255,255,255,.7)"
  511. },
  512. scale: true
  513. },
  514. series: [{
  515. name: '1990',
  516. data: data[0],
  517. type: 'scatter',
  518. symbolSize: function (data) {
  519. return Math.sqrt(data[2]) / 5e2;
  520. },
  521. label: {
  522. emphasis: {
  523. show: true,
  524. formatter: function (param) {
  525. return param.data[3];
  526. },
  527. position: 'top'
  528. }
  529. },
  530. itemStyle: {
  531. normal: {
  532. shadowBlur: 10,
  533. shadowColor: 'rgba(120, 36, 50, 0.5)',
  534. shadowOffsetY: 5,
  535. color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{
  536. offset: 0,
  537. color: 'rgb(251, 118, 123)'
  538. }, {
  539. offset: 1,
  540. color: 'rgb(204, 46, 72)'
  541. }])
  542. }
  543. }
  544. }, {
  545. name: '2015',
  546. data: data[1],
  547. type: 'scatter',
  548. symbolSize: function (data) {
  549. return Math.sqrt(data[2]) / 5e2;
  550. },
  551. label: {
  552. emphasis: {
  553. show: true,
  554. formatter: function (param) {
  555. return param.data[3];
  556. },
  557. position: 'top'
  558. }
  559. },
  560. itemStyle: {
  561. normal: {
  562. shadowBlur: 10,
  563. shadowColor: 'rgba(25, 100, 150, 0.5)',
  564. shadowOffsetY: 5,
  565. color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{
  566. offset: 0,
  567. color: 'rgb(129, 227, 238)'
  568. }, {
  569. offset: 1,
  570. color: 'rgb(25, 183, 207)'
  571. }])
  572. }
  573. }
  574. }]
  575. };
  576. myChart.setOption(option);
  577. </script>
  578. <script type="text/javascript">
  579. var myChart = echarts.init(document.getElementById('pumiddboxtbott1'));
  580. option = {
  581. backgroundColor: 'rgba(1,202,217,.2)',
  582. grid: {
  583. left:60,
  584. right:60,
  585. top:70,
  586. bottom:40
  587. },
  588. toolbox: {
  589. feature: {
  590. dataView: {show: true, readOnly: false},
  591. magicType: {show: true, type: ['line', 'bar']},
  592. restore: {show: true},
  593. saveAsImage: {show: true}
  594. }
  595. },
  596. legend: {
  597. top:10,
  598. textStyle:{
  599. fontSize: 10,
  600. color:'rgba(255,255,255,.7)'
  601. },
  602. data:['2017年','2018年','同比增速']
  603. },
  604. xAxis: [
  605. {
  606. type: 'category',
  607. axisLine:{
  608. lineStyle:{
  609. color:'rgba(255,255,255,.2)'
  610. }
  611. },
  612. splitLine:{
  613. lineStyle:{
  614. color:'rgba(255,255,255,.1)'
  615. }
  616. },
  617. axisLabel:{
  618. color:"rgba(255,255,255,.7)"
  619. },
  620. data: ['1','2','3','4','5','6','7','8','9','10','11','12'],
  621. axisPointer: {
  622. type: 'shadow'
  623. }
  624. }
  625. ],
  626. yAxis: [
  627. {
  628. type: 'value',
  629. name: '',
  630. min: 0,
  631. max: 250,
  632. interval: 50,
  633. axisLine:{
  634. lineStyle:{
  635. color:'rgba(255,255,255,.3)'
  636. }
  637. },
  638. splitLine:{
  639. lineStyle:{
  640. color:'rgba(255,255,255,.01)'
  641. }
  642. },
  643. axisLabel: {
  644. formatter: '{value} ml'
  645. }
  646. },
  647. {
  648. type: 'value',
  649. name: '',
  650. max: 25,
  651. interval: 5,
  652. axisLine:{
  653. lineStyle:{
  654. color:'rgba(255,255,255,.3)'
  655. }
  656. },
  657. splitLine:{
  658. lineStyle:{
  659. color:'rgba(255,255,255,.1)'
  660. }
  661. },
  662. axisLabel: {
  663. formatter: '{value} °C'
  664. }
  665. }
  666. ],
  667. series: [
  668. {
  669. name:'2017年',
  670. type:'bar',
  671. itemStyle: {
  672. normal: {
  673. color: new echarts.graphic.LinearGradient(
  674. 0, 0, 0, 1,
  675. [
  676. {offset: 0, color: '#b266ff'},
  677. {offset: 1, color: '#121b87'}
  678. ]
  679. )
  680. }
  681. },
  682. data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
  683. },
  684. {
  685. name:'2018年',
  686. type:'bar',
  687. itemStyle: {
  688. normal: {
  689. color: new echarts.graphic.LinearGradient(
  690. 0, 0, 0, 1,
  691. [
  692. {offset: 0, color: '#00f0ff'},
  693. {offset: 1, color: '#032a72'}
  694. ]
  695. )
  696. }
  697. },
  698. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
  699. },
  700. {
  701. name:'同比增速',
  702. type:'line',
  703. itemStyle: {
  704. normal: {
  705. color: new echarts.graphic.LinearGradient(
  706. 0, 0, 0, 1,
  707. [
  708. {offset: 0, color: '#fffb34'},
  709. {offset: 1, color: '#fffb34'}
  710. ]
  711. )
  712. }
  713. },
  714. yAxisIndex: 1,
  715. data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]
  716. }
  717. ]
  718. };
  719. myChart.setOption(option);
  720. </script>
  721. <script type="text/javascript">
  722. var myChart = echarts.init(document.getElementById('purightboxtop'));
  723. option = {
  724. color:['#76c4bf','#e5ffc7','#508097','#4d72d9'],
  725. backgroundColor: 'rgba(1,202,217,.2)',
  726. grid: {
  727. left:10,
  728. right:40,
  729. top:0,
  730. bottom:0,
  731. containLabel: true
  732. },
  733. // legend: {
  734. // x : 'center',
  735. // y : 'bottom',
  736. // textStyle:{
  737. // fontSize: 10,
  738. // color:'rgba(255,255,255,.7)'
  739. // },
  740. // data:['涉蒙','涉疆','涉军','涉恐','涉藏','涉稳','涉警']
  741. // },
  742. calculable : true,
  743. series : [
  744. {
  745. name:'面积模式',
  746. type:'pie',
  747. radius : [10, 70],
  748. center : ['50%', '50%'],
  749. roseType : 'area',
  750. data:[
  751. {value:10, name:'涉蒙'},
  752. {value:5, name:'涉疆'},
  753. {value:15, name:'涉军'},
  754. {value:25, name:'涉恐'},
  755. {value:5, name:'涉藏'},
  756. {value:15, name:'涉稳'},
  757. {value:15, name:'涉警'}
  758. ]
  759. }
  760. ]
  761. };
  762. myChart.setOption(option);
  763. </script>
  764. <script type="text/javascript">
  765. var myChart = echarts.init(document.getElementById('purightboxmidd'));
  766. option = {
  767. color:['#7de494','#7fd7b1', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a', '#00b7ee', '#81dabe','#5fc5ce'],
  768. backgroundColor: 'rgba(1,202,217,.2)',
  769. grid: {
  770. left:30,
  771. right:40,
  772. top:30,
  773. bottom:20,
  774. containLabel: true
  775. },
  776. toolbox: {
  777. feature: {
  778. saveAsImage: {}
  779. }
  780. },
  781. xAxis: {
  782. type: 'category',
  783. boundaryGap: false,
  784. axisLine:{
  785. lineStyle:{
  786. color:'rgba(255,255,255,.2)'
  787. }
  788. },
  789. splitLine:{
  790. lineStyle:{
  791. color:'rgba(255,255,255,.1)'
  792. }
  793. },
  794. axisLabel:{
  795. color:"rgba(255,255,255,.7)"
  796. },
  797. data: ['6-08','6-09','6-10','6-11','6-12','6-13','6-14']
  798. },
  799. yAxis: {
  800. type: 'value',
  801. axisLine:{
  802. lineStyle:{
  803. color:'rgba(255,255,255,.2)'
  804. }
  805. },
  806. splitLine:{
  807. lineStyle:{
  808. color:'rgba(255,255,255,.1)'
  809. }
  810. },
  811. axisLabel:{
  812. color:"rgba(255,255,255,.7)"
  813. },
  814. },
  815. series: [
  816. {
  817. name:'2014年',
  818. type:'line',
  819. stack: '总量',
  820. areaStyle: {normal: {}},
  821. data:[120, 132, 101, 134, 90, 230, 210]
  822. }
  823. ]
  824. };
  825. myChart.setOption(option);
  826. </script>
  827. <script type="text/javascript">
  828. var myChart = echarts.init(document.getElementById('purightboxbott'));
  829. option = {
  830. color:['#00f1fc','#00b7ee', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a', '#00b7ee', '#81dabe','#5fc5ce'],
  831. backgroundColor: 'rgba(1,202,217,.2)',
  832. grid: {
  833. left:20,
  834. right:20,
  835. top:0,
  836. bottom:20
  837. },
  838. legend: {
  839. top:10,
  840. textStyle:{
  841. fontSize: 10,
  842. color:'rgba(255,255,255,.7)'
  843. },
  844. data:['境外','境内']
  845. },
  846. series : [
  847. {
  848. name: '访问来源',
  849. type: 'pie',
  850. radius : '55%',
  851. center: ['50%', '55%'],
  852. data:[
  853. {value:335, name:'境外'},
  854. {value:310, name:'境内'}
  855. ],
  856. itemStyle: {
  857. emphasis: {
  858. shadowBlur: 10,
  859. shadowOffsetX: 0,
  860. shadowColor: 'rgba(0, 0, 0, 0.5)'
  861. }
  862. }
  863. }
  864. ]
  865. };
  866. myChart.setOption(option);
  867. </script>
  868. </body>
  869. </html>