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