traffic.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  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. <script src="js/jquery-3.2.0.min.js" charset="utf-8"></script>
  7. <script src="beijing.js"></script>
  8. <body>
  9. <div class="wpbox">
  10. <div class="bnt">
  11. <div class="topbnt_left fl">
  12. <ul><li class="active"><a href="#">警情警力</a></li>
  13. <li><a href="#">实有人口</a></li>
  14. <li><a href="#">流动人口</a></li>
  15. <li><a href="#">实名制</a></li>
  16. </ul>
  17. </div>
  18. <h1 class="tith1 fl">交通分析</h1>
  19. <div class=" fr topbnt_right">
  20. <ul>
  21. <li><a href="#">返回</a></li>
  22. <li><a href="#">分析报告</a></li>
  23. <li><a href="#">交通</a></li>
  24. <li><a href="#">舆情</a></li>
  25. </ul>
  26. </ul>
  27. </div>
  28. </div>
  29. <!-- bnt end -->
  30. <div class="left1">
  31. <div class="aleftboxttop pt1"><h2 class="tith2">进州车辆情况</h2>
  32. <div class="lefttoday_tit" style=" height:8%"><p class="fl">地区:甘孜</p><p class="fm">周期:每日</p><p class="fr">2018-06-14</p></div>
  33. <div class="tlbox">
  34. <ul>
  35. <li>
  36. <p class="text"><span class="w12">本地车辆:</span><span><i class="ricon1"></i>昨日:6</span><span><i class="tricon1"></i>今日:5</span><span class="tr"><img src="img/icondown.png" height="16" /> 1</span></p>
  37. <p class="rwith"><span class="rwith_img" style="width:60%"></span></p>
  38. </li>
  39. <li>
  40. <p class="text"><span class="w12">外地车辆:</span><span><i class="ricon2"></i>昨日:600</span><span><i class="tricon2"></i>今日:500</span><span class="tr"><img src="img/iconup.png" height="16" /> 1</span></p>
  41. <p class="rwith bgc2"><span class="rwith_img qgc2" style="width:40%"></span></p>
  42. </li>
  43. <li>
  44. <p class="text"><span class="w12">乘客人员数量:</span><span><i class="ricon3"></i>昨日:6</span><span><i class="tricon3"></i>今日:5</span><span class="tr"><img src="img/iconup.png" height="16" /> 1</span></p>
  45. <p class="rwith bgc3"><span class="rwith_img qgc3" style="width:50%"></span></p>
  46. </li>
  47. </ul>
  48. </div>
  49. <!-- lefttoday_number end -->
  50. </div>
  51. <div class="aleftboxtmidd">
  52. <h2 class="tith2 pt2">出州车辆情况</h2>
  53. <div class="lefttoday_tit" style=" height:8%"><p class="fl">地区:甘孜</p><p class="fm">周期:每日</p><p class="fr">2018-06-14</p></div>
  54. <div class="tlbox">
  55. <ul>
  56. <li>
  57. <p class="text"><span class="w12">本地车辆:</span><span><i class="ricon1"></i>昨日:6</span><span><i class="tricon1"></i>今日:5</span><span class="tr"><img src="img/icondown.png" height="16" /> 1</span></p>
  58. <p class="rwith"><span class="rwith_img" style="width:60%"></span></p>
  59. </li>
  60. <li>
  61. <p class="text"><span class="w12">外地车辆:</span><span><i class="ricon2"></i>昨日:600</span><span><i class="tricon2"></i>今日:500</span><span class="tr"><img src="img/iconup.png" height="16" /> 1</span></p>
  62. <p class="rwith bgc2"><span class="rwith_img qgc2" style="width:40%"></span></p>
  63. </li>
  64. <li>
  65. <p class="text"><span class="w12">乘客人员数量:</span><span><i class="ricon3"></i>昨日:6</span><span><i class="tricon3"></i>今日:5</span><span class="tr"><img src="img/iconup.png" height="16" /> 1</span></p>
  66. <p class="rwith bgc3"><span class="rwith_img qgc3" style="width:50%"></span></p>
  67. </li>
  68. </ul>
  69. </div>
  70. </div>
  71. <div class="aleftboxtbott">
  72. <h2 class="tith2">总体驾驶人统计</h2>
  73. <!-- <div class="lefttoday_tit height"><p class="fl">状态:已调节.æl,kmo</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div> -->
  74. <div id="aleftboxtmidd" class="aleftboxtbott_cont2" ></div>
  75. </div>
  76. </div>
  77. <!-- left1 end -->
  78. <div class="mrbox">
  79. <div class="mrbox_topmidd" style="width: 69%;">
  80. <div class="amiddboxttop">
  81. <h2 class="tith2 pt1">实时地图</h2>
  82. <div class="hot_map" id="topmap" >
  83. </div>
  84. </div>
  85. <!-- amiddboxttop end-->
  86. <div class="amidd_bott">
  87. <div class="amiddboxtbott1 fl" >
  88. <h2 class="tith2 pt1">每日上户车辆</h2>
  89. <div class="lefttoday_tit"><p class="fr">2018-06-14</p></div>
  90. <div id="amiddboxtbott1" class="amiddboxtbott1content2" ></div>
  91. </div>
  92. <div class="amiddboxtbott2 fl"><h2 class="tith2 pt1">高危车辆统计</h2>
  93. <div id="arightboxbott" class="amiddboxtbott2content"></div>
  94. </div>
  95. </div>
  96. <!-- amidd_bott end -->
  97. </div>
  98. <!-- mrbox_top end -->
  99. <div class="mrbox_top_right">
  100. <div class="arightboxtop"><h2 class="tith2">今日办驾照统计(雷达图)</h2>
  101. <div id="aleftboxtbott" class="aleftboxtbott_contr"></div>
  102. </div>
  103. <div class="arightboxbott"><h2 class="tith2 ">今日新增驾驶人统计</h2>
  104. <div id="aleftboxtmiddr" class="arightboxbottcont2"></div>
  105. </div>
  106. </div>
  107. <!-- mrbox_top_right end -->
  108. </div>
  109. </div>
  110. </div>
  111. <script type="text/javascript">
  112. var myChart = echarts.init(document.getElementById('aleftboxtmidd'));
  113. option = {
  114. color:['#4d72d9','#76c4bf','#e5ffc7'],
  115. backgroundColor: 'rgba(1,202,217,.2)',
  116. grid: {
  117. left:60,
  118. right:60,
  119. top:20,
  120. bottom:0,
  121. containLabel: true
  122. },
  123. legend: {
  124. left: 10,
  125. top: 5,
  126. textStyle:{
  127. fontSize:10,
  128. color:'rgba(255,255,255,.6)'
  129. },
  130. data: ['A照','B照','C照']
  131. },
  132. calculable : true,
  133. series : [
  134. {
  135. name:'面积模式',
  136. type:'pie',
  137. radius : [20, 70],
  138. center : ['50%', '55%'],
  139. roseType : 'area',
  140. data:[
  141. {value:187650, name:'A照'},
  142. {value:145896, name:'B照'},
  143. {value:148920, name:'C照'},
  144. ]
  145. }
  146. ]
  147. };
  148. myChart.setOption(option);
  149. </script>
  150. <script type="text/javascript">
  151. var myChart = echarts.init(document.getElementById('aleftboxtmiddr'));
  152. option = {
  153. color:['#f1b1ff','#aae3fb','#e5ffc7'],
  154. backgroundColor: 'rgba(1,202,217,.2)',
  155. grid: {
  156. left:60,
  157. right:60,
  158. top:20,
  159. bottom:0,
  160. containLabel: true
  161. },
  162. legend: {
  163. left: 10,
  164. top: 5,
  165. textStyle:{
  166. fontSize:10,
  167. color:'rgba(255,255,255,.6)'
  168. },
  169. data: ['A照','B照','C照']
  170. },
  171. calculable : true,
  172. series : [
  173. {
  174. name:'面积模式',
  175. type:'pie',
  176. radius : [20, 70],
  177. center : ['50%', '55%'],
  178. roseType : 'area',
  179. data:[
  180. {value:187650, name:'A照'},
  181. {value:145896, name:'B照'},
  182. {value:148920, name:'C照'},
  183. ]
  184. }
  185. ]
  186. };
  187. myChart.setOption(option);
  188. </script>
  189. <script type="text/javascript">
  190. var myChart = echarts.init(document.getElementById('aleftboxtbott'));
  191. option = {
  192. color:['#7ecef4'],
  193. backgroundColor: 'rgba(1,202,217,.2)',
  194. grid: {
  195. left:20,
  196. right:50,
  197. top:23,
  198. bottom:30,
  199. containLabel: true
  200. },
  201. xAxis: {
  202. type: 'value',
  203. axisLine:{
  204. lineStyle:{
  205. color:'rgba(255,255,255,.2)'
  206. }
  207. },
  208. splitLine:{
  209. lineStyle:{
  210. color:'rgba(255,255,255,0)'
  211. }
  212. },
  213. axisLabel:{
  214. color:"rgba(255,255,255,1)"
  215. },
  216. data: ['1000','5000','10000','15000','20000','25000'],
  217. boundaryGap: [0, 0.01]
  218. },
  219. yAxis: {
  220. type: 'category',
  221. axisLine:{
  222. lineStyle:{
  223. color:'rgba(255,255,255,.5)'
  224. }
  225. },
  226. splitLine:{
  227. lineStyle:{
  228. color:'rgba(255,255,255,.1)'
  229. }
  230. },
  231. axisLabel:{
  232. color:"rgba(255,255,255,.5)"
  233. },
  234. data: ['C2','C1','B2','B1','A3','A2','A1']
  235. },
  236. series: [
  237. {
  238. name: '2011年',
  239. type: 'bar',
  240. barWidth :30,
  241. itemStyle: {
  242. normal: {
  243. color: new echarts.graphic.LinearGradient(
  244. 1, 0, 0, 1,
  245. [
  246. {offset: 0, color: 'rgba(230,253,139,.7)'},
  247. {offset: 1, color: 'rgba(41,220,205,.7)'}
  248. ]
  249. )
  250. }
  251. },
  252. data: [18203, 23489, 29034,18203, 23489, 29034, 29034]
  253. }
  254. ]
  255. };
  256. myChart.setOption(option);
  257. </script>
  258. <script type="text/javascript">
  259. var myChart = echarts.init(document.getElementById('amiddboxtbott1'));
  260. var data = [
  261. [[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]],
  262. [[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]]
  263. ];
  264. option = {
  265. backgroundColor: 'rgba(1,202,217,.2)',
  266. grid: {
  267. left:40,
  268. right:40,
  269. top:50,
  270. bottom:40
  271. },
  272. title: {
  273. top: 5,
  274. left:20,
  275. textStyle:{
  276. fontSize:10,
  277. color:'rgba(255,255,255,.6)'
  278. },
  279. text: '环比类型:日环比'
  280. },
  281. // legend: {
  282. // right: 10,
  283. // top: 5,
  284. // textStyle:{
  285. // fontSize:10,
  286. // color:'rgba(255,255,255,.6)'
  287. // },
  288. // data: ['1990', '2015']
  289. // },
  290. xAxis: {
  291. axisLine:{
  292. lineStyle:{
  293. color:'rgba(255,255,255,.2)'
  294. }
  295. },
  296. splitLine:{
  297. lineStyle:{
  298. color:'rgba(255,255,255,.1)'
  299. }
  300. },
  301. axisLabel:{
  302. color:"rgba(255,255,255,.7)"
  303. }
  304. },
  305. yAxis: {
  306. axisLine:{
  307. lineStyle:{
  308. color:'rgba(255,255,255,.2)'
  309. }
  310. },
  311. splitLine:{
  312. lineStyle:{
  313. color:'rgba(255,255,255,.1)'
  314. }
  315. },
  316. axisLabel:{
  317. color:"rgba(255,255,255,.7)"
  318. },
  319. scale: true
  320. },
  321. series: [ {
  322. name: '2015',
  323. data: data[1],
  324. type: 'scatter',
  325. symbolSize: function (data) {
  326. return Math.sqrt(data[2]) / 5e2;
  327. },
  328. label: {
  329. emphasis: {
  330. show: true,
  331. formatter: function (param) {
  332. return param.data[3];
  333. },
  334. position: 'top'
  335. }
  336. },
  337. itemStyle: {
  338. normal: {
  339. shadowBlur: 10,
  340. shadowColor: 'rgba(25, 100, 150, 0.5)',
  341. shadowOffsetY: 5,
  342. color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{
  343. offset: 0,
  344. color: 'rgb(129, 227, 238)'
  345. }, {
  346. offset: 1,
  347. color: 'rgb(25, 183, 207)'
  348. }])
  349. }
  350. }
  351. }]
  352. };
  353. myChart.setOption(option);
  354. </script>
  355. <script type="text/javascript">
  356. var myChart = echarts.init(document.getElementById('amiddboxtbott2'));
  357. option = {
  358. backgroundColor: 'rgba(1,202,217,.2)',
  359. grid: {
  360. left:60,
  361. right:60,
  362. top:50,
  363. bottom:40
  364. },
  365. toolbox: {
  366. feature: {
  367. dataView: {show: true, readOnly: false},
  368. magicType: {show: true, type: ['line', 'bar']},
  369. restore: {show: true},
  370. saveAsImage: {show: true}
  371. }
  372. },
  373. legend: {
  374. top:10,
  375. textStyle:{
  376. fontSize: 10,
  377. color:'rgba(255,255,255,.7)'
  378. },
  379. data:['2017年','2018年','同比增速']
  380. },
  381. xAxis: [
  382. {
  383. type: 'category',
  384. axisLine:{
  385. lineStyle:{
  386. color:'rgba(255,255,255,.2)'
  387. }
  388. },
  389. splitLine:{
  390. lineStyle:{
  391. color:'rgba(255,255,255,.1)'
  392. }
  393. },
  394. axisLabel:{
  395. color:"rgba(255,255,255,.7)"
  396. },
  397. data: ['1','2','3','4','5','6','7','8','9','10','11','12'],
  398. axisPointer: {
  399. type: 'shadow'
  400. }
  401. }
  402. ],
  403. yAxis: [
  404. {
  405. type: 'value',
  406. name: '',
  407. min: 0,
  408. max: 250,
  409. interval: 50,
  410. axisLine:{
  411. lineStyle:{
  412. color:'rgba(255,255,255,.3)'
  413. }
  414. },
  415. splitLine:{
  416. lineStyle:{
  417. color:'rgba(255,255,255,.01)'
  418. }
  419. },
  420. axisLabel: {
  421. formatter: '{value} ml'
  422. }
  423. },
  424. {
  425. type: 'value',
  426. name: '',
  427. max: 25,
  428. interval: 5,
  429. axisLine:{
  430. lineStyle:{
  431. color:'rgba(255,255,255,.3)'
  432. }
  433. },
  434. splitLine:{
  435. lineStyle:{
  436. color:'rgba(255,255,255,.1)'
  437. }
  438. },
  439. axisLabel: {
  440. formatter: '{value} °C'
  441. }
  442. }
  443. ],
  444. series: [
  445. {
  446. name:'2017年',
  447. type:'bar',
  448. itemStyle: {
  449. normal: {
  450. color: new echarts.graphic.LinearGradient(
  451. 0, 0, 0, 1,
  452. [
  453. {offset: 0, color: '#b266ff'},
  454. {offset: 1, color: '#121b87'}
  455. ]
  456. )
  457. }
  458. },
  459. 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]
  460. },
  461. {
  462. name:'2018年',
  463. type:'bar',
  464. itemStyle: {
  465. normal: {
  466. color: new echarts.graphic.LinearGradient(
  467. 0, 0, 0, 1,
  468. [
  469. {offset: 0, color: '#00f0ff'},
  470. {offset: 1, color: '#032a72'}
  471. ]
  472. )
  473. }
  474. },
  475. 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]
  476. },
  477. {
  478. name:'同比增速',
  479. type:'line',
  480. itemStyle: {
  481. normal: {
  482. color: new echarts.graphic.LinearGradient(
  483. 0, 0, 0, 1,
  484. [
  485. {offset: 0, color: '#fffb34'},
  486. {offset: 1, color: '#fffb34'}
  487. ]
  488. )
  489. }
  490. },
  491. yAxisIndex: 1,
  492. 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]
  493. }
  494. ]
  495. };
  496. myChart.setOption(option);
  497. </script>
  498. <script type="text/javascript">
  499. var myChart = echarts.init(document.getElementById('arightboxbott'));
  500. option = {
  501. color:['#00ffff','#7fd7b1', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a', '#00b7ee', '#81dabe','#5fc5ce'],
  502. backgroundColor: 'rgba(1,202,217,.2)',
  503. grid: {
  504. left: '5%',
  505. right: '8%',
  506. bottom: '7%',
  507. top:'8%',
  508. containLabel: true
  509. },
  510. toolbox: {
  511. feature: {
  512. saveAsImage: {}
  513. }
  514. },
  515. xAxis: {
  516. type: 'category',
  517. boundaryGap: false,
  518. axisLine:{
  519. lineStyle:{
  520. color:'rgba(255,255,255,.2)'
  521. }
  522. },
  523. splitLine:{
  524. lineStyle:{
  525. color:'rgba(255,255,255,.1)'
  526. }
  527. },
  528. axisLabel:{
  529. color:"rgba(255,255,255,.7)"
  530. },
  531. data: ['6-08','6-09','6-10','6-11','6-12','6-13','6-14']
  532. },
  533. yAxis: {
  534. type: 'value',
  535. axisLine:{
  536. lineStyle:{
  537. color:'rgba(255,255,255,.2)'
  538. }
  539. },
  540. splitLine:{
  541. lineStyle:{
  542. color:'rgba(255,255,255,.1)'
  543. }
  544. },
  545. axisLabel:{
  546. color:"rgba(255,255,255,.7)"
  547. },
  548. },
  549. series: [
  550. {
  551. name:'2014年',
  552. type:'line',
  553. stack: '总量',
  554. areaStyle: {normal: {}},
  555. data:[120, 132, 101, 134, 90, 230, 210]
  556. }
  557. ]
  558. };
  559. myChart.setOption(option);
  560. </script>
  561. <script type="text/javascript">
  562. var myChart = echarts.init(document.getElementById('arightboxbott'));
  563. option = {
  564. color:['#00ffff','#7fd7b1', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a', '#00b7ee', '#81dabe','#5fc5ce'],
  565. backgroundColor: 'rgba(1,202,217,.2)',
  566. grid: {
  567. left: '5%',
  568. right: '8%',
  569. bottom: '7%',
  570. top:'8%',
  571. containLabel: true
  572. },
  573. toolbox: {
  574. feature: {
  575. saveAsImage: {}
  576. }
  577. },
  578. xAxis: {
  579. type: 'category',
  580. boundaryGap: false,
  581. axisLine:{
  582. lineStyle:{
  583. color:'rgba(255,255,255,.2)'
  584. }
  585. },
  586. splitLine:{
  587. lineStyle:{
  588. color:'rgba(255,255,255,.1)'
  589. }
  590. },
  591. axisLabel:{
  592. color:"rgba(255,255,255,.7)"
  593. },
  594. data: ['6-08','6-09','6-10','6-11','6-12','6-13','6-14']
  595. },
  596. yAxis: {
  597. type: 'value',
  598. axisLine:{
  599. lineStyle:{
  600. color:'rgba(255,255,255,.2)'
  601. }
  602. },
  603. splitLine:{
  604. lineStyle:{
  605. color:'rgba(255,255,255,.1)'
  606. }
  607. },
  608. axisLabel:{
  609. color:"rgba(255,255,255,.7)"
  610. },
  611. },
  612. series: [
  613. {
  614. name:'2014年',
  615. type:'line',
  616. stack: '总量',
  617. areaStyle: {normal: {}},
  618. data:[120, 132, 101, 134, 90, 230, 210]
  619. }
  620. ]
  621. };
  622. myChart.setOption(option);
  623. </script>
  624. <script type="text/javascript">
  625. $(function(){
  626. //使用echarts.init()方法初始化一个Echarts实例,在init方法中传入echarts map的容器 dom对象
  627. var mapChart = echarts.init(document.getElementById('topmap'));
  628. // mapChart的配置
  629. var option = {
  630. tooltip: {
  631. trigger: 'item',
  632. formatter: '{b}<br/>{c} (个)'
  633. },
  634. toolbox: {
  635. show: true,
  636. orient: 'vertical',
  637. left: 'right',
  638. top: 'center',
  639. feature: {
  640. dataView: {readOnly: false},
  641. restore: {},
  642. saveAsImage: {}
  643. }
  644. },
  645. visualMap: {
  646. min: 0,
  647. max: 2000,
  648. text:['高','低'],
  649. realtime: false,
  650. calculable: true,
  651. inRange: {
  652. color: ['lightskyblue','yellow', 'orangered']
  653. }
  654. },
  655. series:[
  656. {
  657. name: '北京各区',
  658. type: 'map',//type必须声明为 map 说明该图标为echarts 中map类型
  659. map: '北京', //这里需要特别注意。如果是中国地图,map值为china,如果为各省市则为中文。这里用北京
  660. aspectScale: 0.75, //长宽比. default: 0.75
  661. zoom: 1.2,
  662. //roam: true,
  663. itemStyle:{
  664. normal:{label:{show:true}},
  665. emphasis:{label:{show:true}}
  666. },
  667. data: [
  668. {name:'东城区', value: 1800},
  669. {name:'西城区', value: 1700},
  670. {name:'朝阳区', value: 1600},
  671. {name:'丰台区', value: 1400},
  672. {name:'石景山区', value: 1200},
  673. {name:'海淀区', value: 1000},
  674. {name:'门头沟区', value: 800},
  675. {name:'房山区', value: 600},
  676. {name:'通州区', value: 400},
  677. {name:'顺义区', value: 200},
  678. {name:'昌平区', value: 100},
  679. {name:'大兴区', value: 300},
  680. {name:'怀柔区', value: 500},
  681. {name:'平谷区', value: 700},
  682. {name:'密云县', value: 900},
  683. {name:'延庆县', value: 1100}
  684. ]
  685. }
  686. ]
  687. };
  688. //设置图表的配置项
  689. mapChart.setOption(option);
  690. });
  691. </script>
  692. </body>
  693. </html>