traffic.html 22 KB

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