index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <script type="text/javascript" src="js/jquery.js"></script>
  6. <link rel="stylesheet" href="css/comon0.css">
  7. </head>
  8. <body>
  9. <div class="loading">
  10. <div class="loadbox"> <img src="images/loading.gif"> 页面加载中... </div>
  11. </div>
  12. <div class="mainbox">
  13. <ul class="clearfix">
  14. <li>
  15. <div class="logo1"><img src="images/logo1.png"><span>可视化大数据用户案例</span></div>
  16. <div class="boxall" style="height: 2.2rem">
  17. <div class="alltitle">今日实时充值总额<span>real-time</span></div>
  18. <div class="boxnav">
  19. <p> <span>1</span> <span>2</span> <span>3</span> <span>4</span> <span>5</span> <span>6</span> <span>7</span> <span>8</span> <span>9</span> <span>0</span> <i> 元</i> </p>
  20. </div>
  21. <div class="boxfoot"></div>
  22. </div>
  23. <div class="boxall" style="height: 3.3rem">
  24. <div class="alltitle">当日收入<span>income</span></div>
  25. <div id="echarts1" class="chartbox"></div>
  26. <div class="boxfoot"></div>
  27. </div>
  28. <div class="boxall" style="height: 3.4rem">
  29. <p class="pth"> <span>序号</span> <span>地区</span> <span>充值金额</span> <span>时间</span> </p>
  30. <div class="wrap">
  31. <ul>
  32. <li>
  33. <p> <span><i>1</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  34. </li>
  35. <li>
  36. <p> <span><i>2</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  37. </li>
  38. <li>
  39. <p> <span><i>3</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  40. </li>
  41. <li>
  42. <p> <span><i>4</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  43. </li>
  44. <li>
  45. <p> <span><i>5</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  46. </li>
  47. <li>
  48. <p> <span><i>6</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  49. </li>
  50. <li>
  51. <p> <span><i>7</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  52. </li>
  53. <li>
  54. <p> <span><i>8</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  55. </li>
  56. <li>
  57. <p> <span><i>9</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  58. </li>
  59. <li>
  60. <p> <span><i>10</i></span> <span>多伦多</span> <span>199.8</span> <span>2017-08-01 15:23:12</span> </p>
  61. </li>
  62. </ul>
  63. </div>
  64. <div class="boxfoot"></div>
  65. </div>
  66. </li>
  67. <li>
  68. <div class="logo2"><img src="images/logo.png" style="opacity: "></div>
  69. <!-- <div class="map" id="map_1"> </div> -->
  70. </li>
  71. <li>
  72. <div class="logo3">
  73. <div class="time pulll_left"><img src="images/clock.png"><span>2018-07-28 02:40:03</span></div>
  74. </div>
  75. <div class="boxall" style="height:2.2rem">
  76. <div class="alltitle">转化率<span>real-time</span></div>
  77. <div class="boxfoot"></div>
  78. <div class="zhl clearfix">
  79. <div class="zhlbg" style="width: 65%"></div>
  80. <div class="zhltip">65%</div>
  81. </div>
  82. </div>
  83. <div class="boxall" style="height:3.3rem">
  84. <div class="alltitle">实时在线<span>real-time</span></div>
  85. <div class="boxfoot"></div>
  86. <div class="chartbox" id="echarts3"></div>
  87. </div>
  88. <div class="boxall" style="height:3.4rem">
  89. <div class="alltitle">新增用户<span>new user</span></div>
  90. <div class="boxfoot"></div>
  91. <div class="chartbox" id="echarts2"></div>
  92. </div>
  93. </li>
  94. </ul>
  95. <div class="copyright">版权所有:xxxx网络科技有限公司 粤ICP备15039551-4</div>
  96. </div>
  97. <div class="back"></div>
  98. <script language="JavaScript" src="js/js.js"></script>
  99. <script type="text/javascript" src="js/echarts.min.js"></script>
  100. <script type="text/javascript" src="js/china.js"></script>
  101. <script src="js/jquery.liMarquee.js"></script>
  102. <script>
  103. $(function(){
  104. $('.wrap').liMarquee({
  105. direction: 'up',//身上滚动
  106. runshort: false,//内容不足时不滚动
  107. scrollamount: 20//速度
  108. });
  109. });
  110. </script>
  111. <script type="text/javascript">
  112. $(document).ready(function(){
  113. myChart1.resize();
  114.   myChart2.resize();
  115. myChart3.resize();
  116. myChart.resize();
  117. })
  118. window.addEventListener("resize", function () {
  119. myChart1.resize();
  120.   myChart2.resize();
  121. myChart3.resize();
  122. myChart.resize();
  123. });
  124. </script>
  125. <script type="text/javascript">
  126. var myChart1 = echarts.init(document.getElementById('echarts1'));
  127. option1 = {
  128. // backgroundColor: '#00265f',
  129. tooltip: {
  130. trigger: 'axis',
  131. axisPointer: {
  132. type: 'shadow'
  133. }
  134. },
  135. legend: {
  136. data: ['昨日', '今日'],
  137. align: 'right',
  138. right: '40%',
  139. bottom:'3%',
  140. textStyle: {
  141. color: "#fff"
  142. },
  143. itemWidth: 10,
  144. itemHeight: 10,
  145. itemGap: 35
  146. },
  147. grid: {
  148. left: '0%',
  149. top: '0%',
  150. right: '0%',
  151. bottom: '15%',
  152. containLabel: true
  153. },
  154. xAxis: [{
  155. type: 'category',
  156. data: ['00',
  157. '01',
  158. '02',
  159. '03',
  160. '04',
  161. '05',
  162. '06',
  163. '07',
  164. '08',
  165. '09',
  166. '10',
  167. '11',
  168. '12',
  169. '13',
  170. '14',
  171. '15',
  172. '16',
  173. '17',
  174. '18',
  175. '19',
  176. '20',
  177. '21',
  178. '22',
  179. '23'
  180. ],
  181. axisLine: {
  182. show: true,
  183. lineStyle: {
  184. color: "rgba(255,255,255,.1)",
  185. width: 1,
  186. type: "solid"
  187. },
  188. },
  189. axisTick: {
  190. show: false,
  191. },
  192. axisLabel: {
  193. interval: 0,
  194. // rotate:50,
  195. show: true,
  196. splitNumber: 15,
  197. textStyle: {
  198. fontFamily: "微软雅黑",
  199. color: "rgba(255,255,255,.6)",
  200. fontSize: '120%',
  201. },
  202. },
  203. }],
  204. yAxis: [{
  205. type: 'value',
  206. axisLabel: {
  207. //formatter: '{value} %'
  208. show:false,
  209. },
  210. axisTick: {
  211. show: false,
  212. },
  213. axisLine: {
  214. show: true,
  215. lineStyle: {
  216. color: "rgba(255,255,255,.1 )",
  217. width: 1,
  218. type: "solid"
  219. },
  220. },
  221. splitLine: {
  222. lineStyle: {
  223. color: "rgba(255,255,255,.1)",
  224. }
  225. }
  226. }],
  227. series: [{
  228. name: '昨日',
  229. type: 'bar',
  230. data: [20, 22, 25, 36, 35, 21, 19, 26, 27, 26, 28, 30, 38, 44, 48, 59, 64, 69, 68, 72, 80, 70, 49, 32],
  231. barWidth:'25%', //柱子宽度
  232. // barGap: 1, //柱子之间间距
  233. itemStyle: {
  234. normal: {
  235. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  236. offset: 0,
  237. color: '#3ca1ff'
  238. }, {
  239. offset: 1,
  240. color: '#0a73d5'
  241. }]),
  242. opacity: 1,
  243. barBorderRadius: 50,
  244. }
  245. }
  246. }, {
  247. name: '今日',
  248. type: 'bar',
  249. data: [23, 26, 21, 32, 31, 26, 29, 20, 22, 29, 30, 34, 40, 48, 42, 53, 61, 62, 64, 71, 72, 73, 41, 30], barWidth:'25%',
  250. // barGap: 1,
  251. itemStyle: {
  252. normal: {
  253. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  254. offset: 0,
  255. color: '#f8b135'
  256. }, {
  257. offset: 1,
  258. color: '#e59100'
  259. }]),
  260. opacity: 1,
  261. barBorderRadius: 50,
  262. }
  263. }
  264. },
  265. ]
  266. };
  267. var myChart2 = echarts.init(document.getElementById('echarts2'));
  268. option2 = {
  269. // backgroundColor: '#00265f',
  270. tooltip: {
  271. trigger: 'axis',
  272. axisPointer: {
  273. type: 'shadow'
  274. }
  275. },
  276. legend: {
  277. data: ['昨日', '今日'],
  278. align: 'right',
  279. right: '40%',
  280. bottom:'3%',
  281. textStyle: {
  282. color: "#fff"
  283. },
  284. itemWidth: 10,
  285. itemHeight: 10,
  286. itemGap: 15
  287. },
  288. grid: {
  289. left: '0%',
  290. top: '0%',
  291. right: '0%',
  292. bottom: '15%',
  293. containLabel: true
  294. },
  295. xAxis: [{
  296. type: 'category',
  297. data: ['00',
  298. '01',
  299. '02',
  300. '03',
  301. '04',
  302. '05',
  303. '06',
  304. '07',
  305. '08',
  306. '09',
  307. '10',
  308. '11',
  309. '12',
  310. '13',
  311. '14',
  312. '15',
  313. '16',
  314. '17',
  315. '18',
  316. '19',
  317. '20',
  318. '21',
  319. '22',
  320. '23'
  321. ],
  322. axisLine: {
  323. show: true,
  324. lineStyle: {
  325. color: "rgba(255,255,255,.1)",
  326. width: 1,
  327. type: "solid"
  328. },
  329. },
  330. axisTick: {
  331. show: false,
  332. },
  333. axisLabel: {
  334. interval: 0,
  335. // rotate:50,
  336. show: true,
  337. splitNumber: 15,
  338. textStyle: {
  339. fontFamily: "微软雅黑",
  340. color: "rgba(255,255,255,.6)",
  341. fontSize: '120%',
  342. },
  343. },
  344. }],
  345. yAxis: [{
  346. type: 'value',
  347. axisLabel: {
  348. //formatter: '{value} %'
  349. show:false,
  350. },
  351. axisTick: {
  352. show: false,
  353. },
  354. axisLine: {
  355. show: true,
  356. lineStyle: {
  357. color: "rgba(255,255,255,.1)",
  358. width: 1,
  359. type: "solid"
  360. },
  361. },
  362. splitLine: {
  363. lineStyle: {
  364. color: "rgba(255,255,255,.1)",
  365. }
  366. }
  367. }],
  368. series: [{
  369. name: '昨日',
  370. type: 'bar',
  371. data: [20, 50, 80, 58, 80, 42, 66, 83, 20, 50, 80, 58, 83, 68, 57, 80, 42, 66, 68, 57, 80, 42, 66, 12],
  372. barWidth:'25%', //柱子宽度
  373. // barGap: 1, //柱子之间间距
  374. itemStyle: {
  375. normal: {
  376. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  377. offset: 0,
  378. color: '#3ca1ff'
  379. }, {
  380. offset: 1,
  381. color: '#0a73d5'
  382. }]),
  383. opacity: 1,
  384. barBorderRadius: 50,
  385. }
  386. }
  387. }, {
  388. name: '今日',
  389. type: 'bar',
  390. data: [29, 58, 84, 51, 85, 49, 60, 81, 30, 52, 85, 51, 81, 65, 51, 74, 49, 61, 64, 51, 72, 40, 61, 18],
  391. barWidth:'25%',
  392. // barGap: 1,
  393. itemStyle: {
  394. normal: {
  395. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  396. offset: 0,
  397. color: '#f8b135'
  398. }, {
  399. offset: 1,
  400. color: '#e59100'
  401. }]),
  402. opacity: 1,
  403. barBorderRadius: 50,
  404. }
  405. }
  406. },
  407. ]
  408. };
  409. var myChart3 = echarts.init(document.getElementById('echarts3'));
  410. option3 = {
  411. tooltip: {
  412. trigger: 'axis',
  413. axisPointer: {
  414. lineStyle: {
  415. color: '#57617B'
  416. }
  417. }
  418. },
  419. legend: {
  420. icon: 'rect',
  421. data: ['昨日', '今日'],
  422. align: 'right',
  423. right: '35%',
  424. bottom:'5%',
  425. textStyle: {
  426. color: "#fff"
  427. },
  428. itemWidth: 10,
  429. itemHeight: 4,
  430. itemGap: 15
  431. },
  432. grid: {
  433. left: '0',
  434. right: '0',
  435. top:'-12%',
  436. bottom: '20%',
  437. containLabel: true
  438. },
  439. xAxis: [{
  440. type: 'category',
  441. boundaryGap: false,
  442. axisLine: {
  443. lineStyle: {
  444. color: '#57617B'
  445. }
  446. },
  447. data: ['13:00', '13:05', '13:10', '13:15', '13:20', '13:25', '13:30', '13:35', '13:40', '13:45', '13:50', '13:55']
  448. }, {
  449. axisLine: {
  450. lineStyle: {
  451. color: '#57617B'
  452. }
  453. },
  454. }],
  455. yAxis: [{
  456. axisLabel: {
  457. show: false
  458. },
  459. splitLine: {
  460. lineStyle: {
  461. color: 'rgba(255,255,255,.1)'
  462. }
  463. }
  464. }],
  465. series: [{
  466. name: '今日',
  467. type: 'line',
  468. smooth: true,
  469. symbol: 'circle',
  470. symbolSize: 5,
  471. showSymbol: false,
  472. lineStyle: {
  473. normal: {
  474. width: 2
  475. }
  476. },
  477. areaStyle: {
  478. normal: {
  479. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  480. offset: 0,
  481. color: 'rgba(24, 163, 64, 0.3)'
  482. }, {
  483. offset: 0.8,
  484. color: 'rgba(24, 163, 64, 0)'
  485. }], false),
  486. shadowColor: 'rgba(0, 0, 0, 0.1)',
  487. shadowBlur: 10
  488. }
  489. },
  490. itemStyle: {
  491. normal: {
  492. color: '#f4a240',
  493. borderColor: 'rgba(137,189,2,0.27)',
  494. borderWidth: 12
  495. }
  496. },
  497. data: [220, 182, 191, 134, 150, 120, 110, 125, 145, 122, 165, 122]
  498. }, {
  499. name: '昨日',
  500. type: 'line',
  501. smooth: true,
  502. symbol: 'circle',
  503. symbolSize: 5,
  504. showSymbol: false,
  505. lineStyle: {
  506. normal: {
  507. width: 2
  508. }
  509. },
  510. areaStyle: {
  511. normal: {
  512. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  513. offset: 0,
  514. color: 'rgba(39, 122,206, 0.3)'
  515. }, {
  516. offset: 0.8,
  517. color: 'rgba(39, 122,206, 0)'
  518. }], false),
  519. shadowColor: 'rgba(0, 0, 0, 0.1)',
  520. shadowBlur: 10
  521. }
  522. },
  523. itemStyle: {
  524. normal: {
  525. color: '#277ace',
  526. borderColor: 'rgba(0,136,212,0.2)',
  527. borderWidth: 12
  528. }
  529. },
  530. data: [120, 110, 125, 145, 122, 165, 122, 220, 182, 191, 134, 150]
  531. }]
  532. };
  533. setTimeout(function(){
  534. myChart1.setOption(option1);
  535. myChart2.setOption(option2);
  536. myChart3.setOption(option3);
  537. myChart.setOption(option);
  538. }, 500);
  539. </script>
  540. <script type="text/javascript">
  541. var myChart = echarts.init(document.getElementById('map_1'));
  542. var uploadedDataURL = "js/data.json";
  543. myChart.showLoading();
  544. $.getJSON(uploadedDataURL, function (weiboData) {
  545. myChart.hideLoading();
  546. weiboData = weiboData.map(function (serieData, idx) {
  547. var px = serieData[0] / 1000;
  548. var py = serieData[1] / 1000;
  549. var res = [[px, py]];
  550. for (var i = 2; i < serieData.length; i += 2) {
  551. var dx = serieData[i] / 1000;
  552. var dy = serieData[i + 1] / 1000;
  553. var x = px + dx;
  554. var y = py + dy;
  555. res.push([x, y, 1]);
  556. px = x;
  557. py = y;
  558. }
  559. return res;
  560. });
  561. myChart.setOption(option = {
  562. //backgroundColor: '#404a59',
  563. title : {
  564. text: '支付地图区域',
  565. //subtext: 'china map',
  566. // sublink: 'http://www.dddd.com',
  567. left: 'center',
  568. top: '15%',
  569. textStyle: {
  570. color: '#ffb43e'
  571. }
  572. },
  573. legend: {
  574. left: 'center',
  575. top: '22%',
  576. data: ['高', '中', '低'],
  577. textStyle: {
  578. color: '#ccc'
  579. }
  580. },
  581. geo: {
  582. name: '高',
  583. type: 'scatter',
  584. map: 'china',
  585. label: {
  586. emphasis: {
  587. show: false
  588. }
  589. },
  590. itemStyle: {
  591. normal: {
  592. areaColor: '#323c48',
  593. borderColor: '#ffb000'
  594. },
  595. emphasis: {
  596. areaColor: '#2a333d'
  597. }
  598. }
  599. },
  600. series: [{
  601. name: '低',
  602. type: 'scatter',
  603. coordinateSystem: 'geo',
  604. symbolSize: 1,
  605. large: true,
  606. itemStyle: {
  607. normal: {
  608. shadowBlur: 2,
  609. shadowColor: 'rgba(37, 140, 249, 0.8)',
  610. color: 'rgba(37, 140, 249, 0.8)'
  611. }
  612. },
  613. data: weiboData[0]
  614. }, {
  615. name: '中',
  616. type: 'scatter',
  617. coordinateSystem: 'geo',
  618. symbolSize: 1,
  619. large: true,
  620. itemStyle: {
  621. normal: {
  622. shadowBlur: 2,
  623. shadowColor: 'rgba(14, 241, 242, 0.8)',
  624. color: 'rgba(14, 241, 242, 0.8)'
  625. }
  626. },
  627. data: weiboData[1]
  628. }, {
  629. name: '高',
  630. type: 'scatter',
  631. coordinateSystem: 'geo',
  632. symbolSize: 1,
  633. large: true,
  634. itemStyle: {
  635. normal: {
  636. shadowBlur: 2,
  637. shadowColor: 'rgba(255, 255, 255, 0.8)',
  638. color: 'rgba(255, 255, 255, 0.8)'
  639. }
  640. },
  641. data: weiboData[2]
  642. }]
  643. });
  644. });
  645. myChart.setOption(option);
  646. $(document).ready(function(){
  647.   myChart.resize();
  648. })
  649. window.addEventListener("resize", function () {
  650.   myChart.resize();
  651. });
  652. </script>
  653. <script type="text/javascript" src="js/jquery.waypoints.min.js"></script>
  654. <script type="text/javascript" src="js/jquery.countup.min.js"></script>
  655. <script type="text/javascript">
  656. $('.counter').countUp();
  657. </script>
  658. <style>
  659. .btnbox{position: fixed; bottom: 20px; width: 100%; text-align: center; z-index: 1000;}
  660. .btnbox a{ margin:0 3px;border-radius: 30px; color: #fff; font-size: 18px; padding:8px 25px; text-shadow: -1px -1px 0px rgba(0,0,0,0.2); transition:all 0.5s;}
  661. .btnbox .btn1{background: linear-gradient(60deg,#26c6da,#00acc1);box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,188,212,.4);}
  662. .btnbox .btn2{background: linear-gradient(60deg,#66bb6a,#43a047);box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(76,175,80,.4);
  663. }
  664. .btnbox a:hover{background: #47c8ff}
  665. </style>
  666. <!----->
  667. </body>
  668. </html>