index.js 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065
  1. //数字跳动
  2. // var num = document.getElementByName("id").innerText;
  3. // // alert(num);
  4. // function modify(){
  5. // //修改
  6. // num=parseInt(num)+1;
  7. // // alert("00000"+num);
  8. // document.getElementByName("id").innerText=num;
  9. // };
  10. // window.setInterval("modify()",60000);
  11. var s;
  12. function resize() {
  13. s = window.screen.width / 1920;
  14. document.body.style.transformOrigin = '0 0';
  15. document.body.style.transform = 'scale(' + s + ',' + s + ')';
  16. document.body.style.width = window.innerWidth / s + 'px';
  17. document.body.style.height = window.innerHeight / s + 'px';
  18. }
  19. window.onresize = function () {
  20. resize();
  21. }
  22. resize();
  23. var docs = document.getElementsByName("id");
  24. function modify(){
  25. //修改
  26. for (var i = 0; i < docs.length; i++) {
  27. var num = docs[i].innerText;
  28. num=parseInt(num)+1;
  29. docs[i].innerText=num;
  30. }
  31. }
  32. window.setInterval("modify()",60000);
  33. $(function () {
  34. echart_1();
  35. echart_2();
  36. echart_22();
  37. echart_24();
  38. echart_15();
  39. echart_3();
  40. echart_33();
  41. echart_5();
  42. echart_52();
  43. echart_53();
  44. echart_54();
  45. echart_55();
  46. echart_56();
  47. echart_57();
  48. echart_58();
  49. echart_6();
  50. echart_7();
  51. echart_8();
  52. echart_91();
  53. echart_92();
  54. // modify();
  55. function echart_1() {
  56. var myChart = echarts.init(document.getElementById('chart_1'));
  57. var option = {
  58. // title: {
  59. // text: 'ECharts 入门示例'
  60. // },
  61. color:['#ef5f2b','#4a6ac4','#77cd63','#a325c0','#369ebc','#e2a83f'],
  62. tooltip: {},
  63. legend: {
  64. data:['GSM','WCDMA','LTE','WLAN','NB-LOT','LORA'],
  65. textStyle:{
  66. color:"#fff",
  67. fontSize: 10
  68. },
  69. icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
  70. itemWidth: 8, // 设置宽度
  71. itemHeight: 8, // 设置高度
  72. itemGap: 10,// 设置间距
  73. padding: [40, 10, 15, 20] // [5, 10, 15, 20]
  74. },
  75. dataset: {
  76. source: [
  77. ['x','需整改','需增补','需新建','需扩容'],
  78. ['GSM', 10, 0, 0, 0, 0, 0],
  79. ['WCDMA', 20, 0, 0, 0, 0, 0],
  80. ['LTE', 125, 124, 226, 38, 45, 29],
  81. ['WLAN', 38, 36, 148, 13, 25, 10],
  82. ['NB-LOT', 25, 43, 38, 30],
  83. ['LORA', 28, 31, 26, 12]
  84. ]
  85. },
  86. xAxis: [
  87. {
  88. // data: ['需整改','需增补','需新建','需扩容'],
  89. type: 'category', gridIndex: 0,
  90. //设置坐标轴字体颜色和宽度
  91. axisLine: {
  92. lineStyle: {
  93. color: "#fff",
  94. }
  95. },
  96. axisLabel: { //x轴文字样式
  97. textStyle: {
  98. fontSize: 13
  99. }
  100. },
  101. }
  102. ],
  103. yAxis: [
  104. {
  105. gridIndex: 0,
  106. //设置坐标轴字体颜色和宽度
  107. axisLine: {
  108. lineStyle: {
  109. color: "#fff",
  110. }
  111. },
  112. axisLabel: { //x轴文字样式
  113. textStyle: {
  114. fontSize: 10
  115. }
  116. },
  117. }
  118. ],
  119. grid: [
  120. {top: '22%',
  121. bottom: '20%',
  122. // left: '10%',
  123. // right:'5%'
  124. },
  125. ],
  126. series: [
  127. // These series are in the first grid.
  128. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  129. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  130. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  131. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  132. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  133. {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
  134. // These series are in the second grid.
  135. ]
  136. };
  137. // 使用刚指定的配置项和数据显示图表。
  138. myChart.setOption(option);
  139. // window.addEventListener("resize", function () {
  140. // myChart.resize();
  141. // })
  142. }
  143. function echart_22() {
  144. // 基于准备好的dom,初始化echarts实例
  145. var myChart = echarts.init(document.getElementById('chart_22'));
  146. option = {
  147. title: {
  148. text: '在网直放站现状',top:'10%',left:'center',
  149. textStyle:{
  150. color:'#fff', //颜色
  151. fontStyle:'normal', //风格
  152. fontWeight:'normal', //粗细
  153. // fontFamily:'Microsoft yahei', //字体
  154. fontSize:14, //大小
  155. textAlign:'center' //水平对齐
  156. },
  157. },
  158. color:['#218BB4','#5AA949','#C23531','#7121B4'],
  159. tooltip: {
  160. trigger: 'item',
  161. formatter: "{a} <br/>{b}: {c} ({d}%)"
  162. },
  163. legend: {
  164. orient: 'vertical',
  165. x: 'left',
  166. itemWidth: 8, // 设置宽度
  167. itemHeight: 8, // 设置高度
  168. textStyle:{
  169. color:"#fff",
  170. fontSize: 10
  171. },
  172. orient: 'vertical',
  173. left: 'center', //图例距离左的距离
  174. top:'24%',
  175. data:['干线放大器','模拟直放站','','无线直放站','数字直放站'],//图例换行
  176. },
  177. grid: {
  178. left: '-20%',//生成的图片和左边的间距
  179. // right: '2%',//生成的图片和右边的间距’,
  180. // bottom: '10%',//生成的图片和底部的间距
  181. top: '20%',//生成的图片和顶部的间距
  182. containLabel: true//为ture才会生效以上的设置
  183. },
  184. series: [
  185. {
  186. name:'count',
  187. type:'pie',
  188. radius: ['30%', '55%'],
  189. center: ['50%', '70%'], //在div中位置
  190. avoidLabelOverlap: false,
  191. label: {
  192. normal: {
  193. show: true,
  194. formatter: '{d}%', //显示的内容
  195. position: 'inner',
  196. textStyle: {
  197. fontSize: '10',
  198. color:'#fff'
  199. }
  200. },
  201. // emphasis: {
  202. // show: true,
  203. // textStyle: {
  204. // fontSize: '12',
  205. // fontWeight: 'bold'
  206. // }
  207. // }
  208. },
  209. labelLine: {
  210. normal: {
  211. show: false
  212. }
  213. },
  214. data:[
  215. {value:10, name:'干线放大器'},
  216. {value:5, name:'无线直放站'},
  217. {value:15, name:'模拟直放站'},
  218. {value:70, name:'数字直放站'}
  219. ]
  220. }
  221. ]
  222. };
  223. // 使用刚指定的配置项和数据显示图表。
  224. myChart.setOption(option);
  225. }
  226. function echart_2() {
  227. // 基于准备好的dom,初始化echarts实例
  228. var myChart = echarts.init(document.getElementById('chart_2'));
  229. option = {
  230. title: {
  231. text: '在网分布系统现状',top:'10%',left:'center',
  232. textStyle:{
  233. color:'#fff', //颜色
  234. fontStyle:'normal', //风格
  235. fontWeight:'normal', //粗细
  236. // fontFamily:'Microsoft yahei', //字体
  237. fontSize:14, //大小
  238. textAlign:'center' //水平对齐
  239. },
  240. },
  241. color:['#218BB4','#5AA949','#7121B4','#C23531'],
  242. tooltip: {
  243. trigger: 'item',
  244. formatter: "{a} <br/>{b}: {c} ({d}%)"
  245. },
  246. legend: {
  247. orient: 'vertical',
  248. x: 'left',
  249. itemWidth: 8, // 设置宽度
  250. itemHeight: 8, // 设置高度
  251. textStyle:{
  252. color:"#fff",
  253. fontSize: 10
  254. },
  255. orient: 'vertical',
  256. left: 'center', //图例距离左的距离
  257. top:'24%',
  258. data:['已归档站点','已拆除站点','','在建站点','改造站点'],//图例换行
  259. },
  260. grid: {
  261. left: '-20%',//生成的图片和左边的间距
  262. // right: '2%',//生成的图片和右边的间距’,
  263. // bottom: '10%',//生成的图片和底部的间距
  264. top: '25%',//生成的图片和顶部的间距
  265. containLabel: true//为ture才会生效以上的设置
  266. },
  267. series: [
  268. {
  269. name:'count',
  270. type:'pie',
  271. radius: ['30%', '55%'],
  272. center: ['50%', '70%'], //在div中位置
  273. avoidLabelOverlap: false,
  274. label:{
  275. normal: {
  276. show: true,
  277. position: 'inner',
  278. formatter: '{d}%', //显示的内容
  279. textStyle: {
  280. fontSize: '10',
  281. color:'#fff'
  282. }
  283. },
  284. emphasis: {
  285. show: true,
  286. textStyle: {
  287. fontSize: '12',
  288. fontWeight: 'bold'
  289. }
  290. }
  291. },
  292. labelLine: {
  293. normal: {
  294. show: false
  295. }
  296. },
  297. data:[
  298. {value:70, name:'已归档站点'},
  299. {value:5, name:'已拆除站点'},
  300. {value:10, name:'在建站点'},
  301. {value:15, name:'改造站点'}
  302. ]
  303. }
  304. ]
  305. };
  306. // 使用刚指定的配置项和数据显示图表。
  307. myChart.setOption(option);
  308. }
  309. //echart_3
  310. function echart_3() {
  311. // 基于准备好的dom,初始化echarts实例
  312. var myChart = echarts.init(document.getElementById('chart_3'));
  313. myChart.clear();
  314. option = {
  315. // title: {
  316. // text: '在网分布系统现状
  317. // 在网直放站现状
  318. // 分地市分布系统现状'
  319. // },
  320. title: {
  321. text: '分地市分布系统现状',top:'0%',left:'center',
  322. textStyle:{
  323. color:'#fff', //颜色
  324. fontStyle:'normal', //风格
  325. fontWeight:'normal', //粗细
  326. // fontFamily:'Microsoft yahei', //字体
  327. fontSize:14, //大小
  328. textAlign:'center' //水平对齐
  329. },
  330. },
  331. tooltip: {
  332. trigger: 'axis'
  333. },
  334. textStyle : {
  335. fontWeight : 'normal', //显示字体粗细等
  336. fontSize : 10
  337. },
  338. legend: {
  339. data:['已归档站点数','已拆除站点数','在建站点','改造站点'],
  340. textStyle:{
  341. fontSize: 10,
  342. color: '#fff'
  343. },
  344. top: '10%'
  345. },
  346. grid: {
  347. top: '20%',
  348. left: '3%',
  349. right: '4%',
  350. bottom: '5%',
  351. containLabel: true
  352. },
  353. color: ['#FF4949','#FFA74D','#77cd63','#44AFF0',],
  354. xAxis: {
  355. type: 'category',
  356. boundaryGap: false,
  357. data: ['杭州','衢州','舟山','宁波','温州','嘉兴','金华','绍兴','丽水','台州','湖州'],
  358. splitLine: {
  359. show: false
  360. },
  361. axisLabel: { //x轴文字样式
  362. textStyle: {
  363. fontSize: 10
  364. }
  365. },
  366. axisLine: {
  367. lineStyle: {
  368. color: '#fff'
  369. }
  370. }
  371. },
  372. yAxis: {
  373. // name: '数量',
  374. type: 'value',
  375. splitLine: {
  376. show: false
  377. },
  378. axisLabel: { //y轴文字样式
  379. textStyle: {
  380. fontSize: 10
  381. }
  382. },
  383. axisLine: {
  384. lineStyle: {
  385. color: '#fff'
  386. }
  387. }
  388. },
  389. series: [
  390. {
  391. name:'已归档站点数',
  392. type:'line',
  393. data:[4550, 1260, 710, 3970, 3467, 3400, 2989, 2019, 1800, 1802, 1780]
  394. },
  395. {
  396. name:'已拆除站点数',
  397. type:'line',
  398. data:[905, 1, 1, 230, 480, 400, 20, 0, 0, 0, 0]
  399. },
  400. {
  401. name:'在建站点',
  402. type:'line',
  403. data:[600, 450, 140, 600, 520, 450, 490, 300, 0, 500, 0]
  404. },
  405. {
  406. name:'改造站点',
  407. type:'line',
  408. data:[700, 490, 150, 660, 520, 450, 490, 300, 0, 500, 0]
  409. }
  410. ]
  411. };
  412. myChart.setOption(option);
  413. }
  414. function echart_33() {
  415. // 基于准备好的dom,初始化echarts实例
  416. var myChart = echarts.init(document.getElementById('chart_33'));
  417. myChart.clear();
  418. var option = {
  419. title: {
  420. text: '材料数量统计',top:'4%',left:'center',
  421. textStyle:{
  422. color:'#fff', //颜色
  423. fontStyle:'normal', //风格
  424. fontWeight:'normal', //粗细
  425. // fontFamily:'Microsoft yahei', //字体
  426. fontSize:14, //大小
  427. textAlign:'center' //水平对齐
  428. },
  429. },
  430. color: ['#38b3f1'],
  431. tooltip: {
  432. trigger: 'axis',
  433. // axisPointer: { // 坐标轴指示器,坐标轴触发有效
  434. // type: 'shadow', // 默认为直线,可选为:'line' | 'shadow'
  435. // shadowOffsetX: 10
  436. // }
  437. },
  438. textStyle: {
  439. color: '#ccc'
  440. },
  441. grid: {
  442. top: '20%',
  443. left: '3%',
  444. right: '3%',
  445. bottom: '1%',
  446. containLabel: true
  447. },
  448. xAxis: [{
  449. type: 'category',
  450. data: ["合路器","功分器","耦合器","全向吸顶天线","定向吸顶天线","板状天线","美化天线","八木天线"],
  451. axisTick: {
  452. alignWithLabel: true
  453. },
  454. axisLabel: { //x轴文字样式
  455. textStyle: {
  456. fontSize: 10,
  457. interval: 0
  458. }
  459. },
  460. }],
  461. yAxis: [{
  462. type: 'value',
  463. axisLabel: { //y轴文字样式
  464. textStyle: {
  465. fontSize: 10
  466. }
  467. },
  468. }],
  469. series: [{
  470. name: '直接访问',
  471. type: 'bar',
  472. barWidth: '40%',
  473. // barGap:'10%',
  474. barCategoryGap : '5%',
  475. data: ["37077","1404960","2012952","2593964","162313","648970","35953","625"]
  476. }]
  477. };
  478. myChart.setOption(option);
  479. }
  480. function echart_24() {
  481. // 基于准备好的dom,初始化echarts实例
  482. var myChart = echarts.init(document.getElementById('chart_24'));
  483. option = {
  484. tooltip: {
  485. trigger: 'item',
  486. formatter: "{a} <br/>{b}: {c} ({d}%)"
  487. },
  488. title: {
  489. text: '现网规模',
  490. textStyle:{
  491. color:'#fff', //颜色
  492. fontStyle:'normal', //风格
  493. fontWeight:'normal', //粗细
  494. // fontFamily:'Microsoft yahei', //字体
  495. fontSize:14, //大小
  496. textAlign:'center' //水平对齐
  497. },left:'center'
  498. },
  499. color:['#ef5f2b','#4a6ac4','#77cd63'],
  500. legend: {
  501. orient: 'vertical',
  502. x: 'left',
  503. itemWidth: 8, // 设置宽度
  504. itemHeight: 8, // 设置高度
  505. textStyle:{
  506. color:"#fff",
  507. fontSize: 10
  508. },
  509. orient: 'horizontal',
  510. left: 'center', //图例距离左的距离
  511. top:'20%',
  512. data:['宏站','室分','微站'],//图例换行
  513. },
  514. grid: {
  515. left: '-20%',//生成的图片和左边的间距
  516. // right: '2%',//生成的图片和右边的间距’,
  517. // bottom: '10%',//生成的图片和底部的间距
  518. top: '20%',//生成的图片和顶部的间距
  519. containLabel: true//为ture才会生效以上的设置
  520. },
  521. series: [
  522. {
  523. name:'count',
  524. type:'pie',
  525. radius: ['30%', '55%'],
  526. center: ['48%', '65%'], //在div中位置
  527. avoidLabelOverlap: false,
  528. label: {
  529. normal: {
  530. show: true,
  531. position: 'inner',
  532. formatter: '{d}%', //显示的内容
  533. },
  534. emphasis: {
  535. show: true,
  536. textStyle: {
  537. fontSize: '12',
  538. fontWeight: 'bold'
  539. }
  540. }
  541. },
  542. labelLine: {
  543. normal: {
  544. show: false
  545. }
  546. },
  547. data:[
  548. {value:60, name:'宏站'},
  549. {value:30, name:'室分'},
  550. {value:10, name:'微站'}
  551. ]
  552. }
  553. ]
  554. };
  555. // 使用刚指定的配置项和数据显示图表。
  556. myChart.setOption(option);
  557. }
  558. function echart_15() {
  559. var myChart = echarts.init(document.getElementById('chart_15'));
  560. var option = {
  561. title: {
  562. text: '档期规模',
  563. textStyle:{
  564. color:'#fff', //颜色
  565. fontStyle:'normal', //风格
  566. fontWeight:'normal', //粗细
  567. // fontFamily:'Microsoft yahei', //字体
  568. fontSize:14, //大小
  569. align:'center' //水平对齐
  570. },left:'center'
  571. },
  572. color:['#ef5f2b','#4a6ac4','#77cd63'],
  573. tooltip: {},
  574. legend: {
  575. data:['宏站','室分','微站',],
  576. textStyle:{
  577. color:"#fff",
  578. fontSize: 10
  579. },
  580. icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
  581. itemWidth: 8, // 设置宽度
  582. itemHeight: 8, // 设置高度
  583. itemGap: 10,// 设置间距
  584. padding: [40, 10, 4, 20] // [5, 10, 15, 20]
  585. },
  586. dataset: {
  587. source: [
  588. ['x','当期规模数','当期拍照数','当期在网数'],
  589. ['宏站', 1250, 1400, 1100],
  590. ['室分', 750, 760, 450],
  591. ['微站', 980, 980, 580]
  592. ]
  593. },
  594. xAxis: [
  595. {
  596. type: 'category', gridIndex: 0,
  597. //设置坐标轴字体颜色和宽度
  598. axisLine: {
  599. lineStyle: {
  600. color: "#fff",
  601. }
  602. },
  603. axisLabel: { //x轴文字样式
  604. textStyle: {
  605. fontSize: 10
  606. }
  607. },
  608. }
  609. ],
  610. yAxis: [
  611. {
  612. gridIndex: 0,
  613. //设置坐标轴字体颜色和宽度
  614. axisLine: {
  615. lineStyle: {
  616. color: "#fff",
  617. }
  618. },
  619. axisLabel: { //x轴文字样式
  620. textStyle: {
  621. fontSize: 10
  622. }
  623. },
  624. }
  625. ],
  626. grid: [
  627. {
  628. top: '60',
  629. right: '5',
  630. bottom:'20'
  631. }
  632. ],
  633. series: [
  634. // These series are in the first grid.
  635. {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
  636. {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
  637. {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
  638. // These series are in the second grid.
  639. ]
  640. };
  641. // 使用刚指定的配置项和数据显示图表。
  642. myChart.setOption(option);
  643. // window.addEventListener("resize", function () {
  644. // myChart.resize();
  645. // })
  646. }
  647. //ditu
  648. // function echart_4() {
  649. // // 基于准备好的dom,初始化echarts实例
  650. // var myChart = echarts.init(document.getElementById('chart_4'));
  651. // }
  652. function echart_5() {
  653. // 基于准备好的dom,初始化echarts实例
  654. var myChart = echarts.init(document.getElementById('chart_5'));
  655. var option = {
  656. tooltip : {
  657. formatter: "{a} <br/>{b} : {c}"
  658. },
  659. // toolbox: {
  660. // show : true,
  661. // feature : {
  662. // mark : {show: true},
  663. // restore : {show: true},
  664. // saveAsImage : {show: true}
  665. // }
  666. // },
  667. series : [
  668. {
  669. name:'指标',
  670. type:'gauge',
  671. min:0,
  672. max:1000,
  673. splitNumber: 10, // 分割段数,默认为5
  674. radius: '68%',
  675. center: ["50%", "60%"], // 仪表位置
  676. axisLine: { // 坐标轴线
  677. lineStyle: { // 属性lineStyle控制线条样式
  678. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  679. width: 2, //仪表盘外围圆宽度
  680. shadowColor : '#fff', //默认透明
  681. shadowBlur: 10
  682. }
  683. },
  684. axisTick: { // 坐标轴小标记
  685. splitNumber: 5, // 每份split细分多少段
  686. length :6, // 属性length控制线长
  687. lineStyle: { // 属性lineStyle控制线条样式
  688. color: 'auto'
  689. }
  690. },
  691. axisLabel: {
  692. show:false
  693. },
  694. splitLine: { // 分隔线
  695. show: true, // 默认显示,属性show控制显示与否
  696. length :2, // 属性length控制线长
  697. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  698. width:2,
  699. color: '#fff',
  700. shadowColor : '#fff', //默认透明
  701. shadowBlur: 10
  702. }
  703. },
  704. pointer : {
  705. width : 2
  706. },
  707. title : {
  708. show : true,
  709. offsetCenter: [0, '100%'], // x, y,单位px
  710. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  711. fontWeight: 'bolder',
  712. fontSize: 10,
  713. color: '#fff',
  714. }
  715. },
  716. detail : {
  717. formatter:'{value}',
  718. offsetCenter: [0, '30%'], // x, y,单位px
  719. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  720. fontWeight: 'bolder',
  721. fontSize: 14,
  722. color: '#fff'
  723. }
  724. },
  725. data:[{value: 554, name: '位置告警'}]
  726. }
  727. ]
  728. };
  729. // 为echarts对象加载数据
  730. myChart.setOption(option);
  731. // setInterval(function (){
  732. // option.series[0].data[0].value = (Math.random()*20).toFixed(2) - 0;
  733. // myChart.setOption(option,true);
  734. // },2000);
  735. data= [600,580,620,670,550,560,600,670,700,750,610,670,723,590,780,770,790,820,870,890,920,990];
  736. index=0;
  737. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  738. option.series[0].data[0].value = data[index++%data.length];
  739. myChart.setOption(option, true);
  740. }, 2000);
  741. }
  742. function echart_52() {
  743. // 基于准备好的dom,初始化echarts实例
  744. var myChart = echarts.init(document.getElementById('chart_52'));
  745. var option = {
  746. tooltip : {
  747. formatter: "{a} <br/>{b} : {c}"
  748. },
  749. // toolbox: {
  750. // show : true,
  751. // feature : {
  752. // mark : {show: true},
  753. // restore : {show: true},
  754. // saveAsImage : {show: true}
  755. // }
  756. // },
  757. series : [
  758. {
  759. name:'指标',
  760. type:'gauge',
  761. min:0,
  762. max:1000,
  763. splitNumber: 10, // 分割段数,默认为5
  764. radius: '68%',
  765. center: ["50%", "60%"], // 仪表位置
  766. axisLine: { // 坐标轴线
  767. lineStyle: { // 属性lineStyle控制线条样式
  768. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  769. width: 2, //仪表盘外围圆宽度
  770. shadowColor : '#fff', //默认透明
  771. shadowBlur: 10
  772. }
  773. },
  774. axisTick: { // 坐标轴小标记
  775. splitNumber: 5, // 每份split细分多少段
  776. length :6, // 属性length控制线长
  777. lineStyle: { // 属性lineStyle控制线条样式
  778. color: 'auto'
  779. }
  780. },
  781. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  782. show: false,
  783. },
  784. splitLine: { // 分隔线
  785. show: true, // 默认显示,属性show控制显示与否
  786. length :2, // 属性length控制线长
  787. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  788. width:2,
  789. color: '#fff',
  790. shadowColor : '#fff', //默认透明
  791. shadowBlur: 10
  792. }
  793. },
  794. pointer : {
  795. width : 2
  796. },
  797. title : {
  798. show : true,
  799. offsetCenter: [0, '100%'], // x, y,单位px
  800. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  801. fontWeight: 'bolder',
  802. fontSize: 10,
  803. color: '#fff',
  804. }
  805. },
  806. detail : {
  807. formatter:'{value}',
  808. offsetCenter: [0, '30%'], // x, y,单位px
  809. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  810. fontWeight: 'bolder',
  811. fontSize: 14,
  812. color: '#fff'
  813. }
  814. },
  815. data:[{value: 242, name: '数字型号异常告警'}]
  816. }
  817. ]
  818. };
  819. // 为echarts对象加载数据
  820. myChart.setOption(option);
  821. // setInterval(function (){
  822. // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
  823. // myChart.setOption(option,true);
  824. // },2000);
  825. data= [300,380,420,370,450,360,500,470,500,550,410,570,423,590,480,470,540,620,570,690,770,650];
  826. index=0;
  827. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  828. option.series[0].data[0].value = data[index++%data.length];
  829. myChart.setOption(option, true);
  830. }, 2000);
  831. }
  832. function echart_53() {
  833. // 基于准备好的dom,初始化echarts实例
  834. var myChart = echarts.init(document.getElementById('chart_53'));
  835. var option = {
  836. tooltip : {
  837. formatter: "{a} <br/>{b} : {c}"
  838. },
  839. // toolbox: {
  840. // show : true,
  841. // feature : {
  842. // mark : {show: true},
  843. // restore : {show: true},
  844. // saveAsImage : {show: true}
  845. // }
  846. // },
  847. series : [
  848. {
  849. name:'指标',
  850. type:'gauge',
  851. min:0,
  852. max:1000, //表盘最大值
  853. splitNumber: 10, // 分割段数,默认为5
  854. radius: '68%',
  855. center: ["50%", "60%"], // 仪表位置
  856. axisLine: { // 坐标轴线
  857. lineStyle: { // 属性lineStyle控制线条样式
  858. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  859. width: 2, //仪表盘外围圆宽度
  860. shadowColor : '#fff', //默认透明
  861. shadowBlur: 10
  862. }
  863. },
  864. axisTick: { // 坐标轴小标记
  865. splitNumber: 5, // 每份split细分多少段
  866. length :6, // 属性length控制线长
  867. lineStyle: { // 属性lineStyle控制线条样式
  868. color: 'auto'
  869. }
  870. },
  871. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  872. show:false,
  873. },
  874. splitLine: { // 分隔线
  875. show: true, // 默认显示,属性show控制显示与否
  876. length :2, // 属性length控制线长
  877. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  878. width:2,
  879. color: '#fff',
  880. shadowColor : '#fff', //默认透明
  881. shadowBlur: 10
  882. }
  883. },
  884. pointer : {
  885. width : 2
  886. },
  887. title : {
  888. show : true,
  889. offsetCenter: [0, '100%'], // x, y,单位px
  890. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  891. fontWeight: 'bolder',
  892. fontSize: 10,
  893. color: '#fff',
  894. }
  895. },
  896. detail : {
  897. formatter:'{value}',
  898. offsetCenter: [0, '30%'], // x, y,单位px
  899. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  900. fontWeight: 'bolder',
  901. fontSize: 14,
  902. color: '#fff'
  903. }
  904. },
  905. data:[{value: 62, name: '监控无响应告警'}]
  906. }
  907. ]
  908. };
  909. // 为echarts对象加载数据
  910. myChart.setOption(option);
  911. data= [40,88,267,100,55,65,178,82,30,66,76,67,45,79,89,90,200,120,300,230,56,70];
  912. index=0;
  913. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  914. option.series[0].data[0].value = data[index++%data.length];
  915. myChart.setOption(option, true);
  916. }, 2000);
  917. }
  918. function echart_54() {
  919. // 基于准备好的dom,初始化echarts实例
  920. var myChart = echarts.init(document.getElementById('chart_54'));
  921. var option = {
  922. tooltip : {
  923. formatter: "{a} <br/>{b} : {c}"
  924. },
  925. // toolbox: {
  926. // show : true,
  927. // feature : {
  928. // mark : {show: true},
  929. // restore : {show: true},
  930. // saveAsImage : {show: true}
  931. // }
  932. // },
  933. series : [
  934. {
  935. name:'指标',
  936. type:'gauge',
  937. min:0,
  938. max:1000,
  939. splitNumber: 10, // 分割段数,默认为5
  940. radius: '68%',
  941. center: ["50%", "60%"], // 仪表位置
  942. axisLine: { // 坐标轴线
  943. lineStyle: { // 属性lineStyle控制线条样式
  944. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  945. width: 2, //仪表盘外围圆宽度
  946. shadowColor : '#fff', //默认透明
  947. shadowBlur: 10
  948. }
  949. },
  950. axisTick: { // 坐标轴小标记
  951. splitNumber: 5, // 每份split细分多少段
  952. length :6, // 属性length控制线长
  953. lineStyle: { // 属性lineStyle控制线条样式
  954. color: 'auto'
  955. }
  956. },
  957. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  958. show:false,
  959. },
  960. splitLine: { // 分隔线
  961. show: true, // 默认显示,属性show控制显示与否
  962. length :2, // 属性length控制线长
  963. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  964. width:2,
  965. color: '#fff',
  966. shadowColor : '#fff', //默认透明
  967. shadowBlur: 10
  968. }
  969. },
  970. pointer : {
  971. width : 2
  972. },
  973. title : {
  974. show : true,
  975. offsetCenter: [0, '100%'], // x, y,单位px
  976. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  977. fontWeight: 'bolder',
  978. fontSize: 10,
  979. color: '#fff',
  980. }
  981. },
  982. detail : {
  983. formatter:'{value}',
  984. offsetCenter: [0, '30%'], // x, y,单位px
  985. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  986. fontWeight: 'bolder',
  987. fontSize: 14,
  988. color: '#fff'
  989. }
  990. },
  991. data:[{value: 256, name: '接收电平强度告警'}]
  992. }
  993. ]
  994. };
  995. // 为echarts对象加载数据
  996. myChart.setOption(option);
  997. // setInterval(function (){
  998. // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
  999. // myChart.setOption(option,true);
  1000. // },2000);
  1001. data= [600,240,300,278,330,380,440,670,500,559,340,400,278,389,456,290,390,400,450,470,700,720];
  1002. index=0;
  1003. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  1004. option.series[0].data[0].value = data[index++%data.length];
  1005. myChart.setOption(option, true);
  1006. }, 2000);
  1007. }
  1008. function echart_55() {
  1009. // 基于准备好的dom,初始化echarts实例
  1010. var myChart = echarts.init(document.getElementById('chart_55'));
  1011. var option = {
  1012. tooltip : {
  1013. formatter: "{a} <br/>{b} : {c}"
  1014. },
  1015. // toolbox: {
  1016. // show : true,
  1017. // feature : {
  1018. // mark : {show: true},
  1019. // restore : {show: true},
  1020. // saveAsImage : {show: true}
  1021. // }
  1022. // },
  1023. series : [
  1024. {
  1025. name:'指标',
  1026. type:'gauge',
  1027. min:0,
  1028. max:1000,
  1029. splitNumber: 10, // 分割段数,默认为5
  1030. radius: '68%',
  1031. axisLine: { // 坐标轴线
  1032. lineStyle: { // 属性lineStyle控制线条样式
  1033. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  1034. width: 2, //仪表盘外围圆宽度
  1035. shadowColor : '#fff', //默认透明
  1036. shadowBlur: 10
  1037. }
  1038. },
  1039. axisTick: { // 坐标轴小标记
  1040. splitNumber: 5, // 每份split细分多少段
  1041. length :6, // 属性length控制线长
  1042. lineStyle: { // 属性lineStyle控制线条样式
  1043. color: 'auto'
  1044. }
  1045. },
  1046. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  1047. show:false,
  1048. },
  1049. splitLine: { // 分隔线
  1050. show: true, // 默认显示,属性show控制显示与否
  1051. length :2, // 属性length控制线长
  1052. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1053. width:2,
  1054. color: '#fff',
  1055. shadowColor : '#fff', //默认透明
  1056. shadowBlur: 10
  1057. }
  1058. },
  1059. pointer : {
  1060. width : 2
  1061. },
  1062. title : {
  1063. show : true,
  1064. offsetCenter: [0, '100%'], // x, y,单位px
  1065. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1066. fontWeight: 'bolder',
  1067. fontSize: 10,
  1068. color: '#fff',
  1069. }
  1070. },
  1071. detail : {
  1072. formatter:'{value}',
  1073. offsetCenter: [0, '30%'], // x, y,单位px
  1074. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1075. fontWeight: 'bolder',
  1076. fontSize: 14,
  1077. color: '#fff'
  1078. }
  1079. },
  1080. data:[{value: 53, name: '光收发告警'}]
  1081. }
  1082. ]
  1083. };
  1084. // 为echarts对象加载数据
  1085. myChart.setOption(option);
  1086. // setInterval(function (){
  1087. // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
  1088. // myChart.setOption(option,true);
  1089. // },2000);
  1090. data= [100,180,220,320,450,160,200,270,300,450,610,270,323,490,320,370,490,520,670,700,720,890];
  1091. index=0;
  1092. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  1093. option.series[0].data[0].value = data[index++%data.length];
  1094. myChart.setOption(option, true);
  1095. }, 2000);
  1096. }
  1097. function echart_56() {
  1098. // 基于准备好的dom,初始化echarts实例
  1099. var myChart = echarts.init(document.getElementById('chart_56'));
  1100. var option = {
  1101. tooltip : {
  1102. formatter: "{a} <br/>{b} : {c}"
  1103. },
  1104. // toolbox: {
  1105. // show : true,
  1106. // feature : {
  1107. // mark : {show: true},
  1108. // restore : {show: true},
  1109. // saveAsImage : {show: true}
  1110. // }
  1111. // },
  1112. series : [
  1113. {
  1114. name:'指标',
  1115. type:'gauge',
  1116. min:0,
  1117. max:1000,
  1118. splitNumber: 10, // 分割段数,默认为5
  1119. radius: '65%',
  1120. axisLine: { // 坐标轴线
  1121. lineStyle: { // 属性lineStyle控制线条样式
  1122. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  1123. width: 2, //仪表盘外围圆宽度
  1124. shadowColor : '#fff', //默认透明
  1125. shadowBlur: 10
  1126. }
  1127. },
  1128. axisTick: { // 坐标轴小标记
  1129. splitNumber: 5, // 每份split细分多少段
  1130. length :6, // 属性length控制线长
  1131. lineStyle: { // 属性lineStyle控制线条样式
  1132. color: 'auto'
  1133. }
  1134. },
  1135. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  1136. show:false,
  1137. },
  1138. splitLine: { // 分隔线
  1139. show: true, // 默认显示,属性show控制显示与否
  1140. length :2, // 属性length控制线长
  1141. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1142. width:2,
  1143. color: '#fff',
  1144. shadowColor : '#fff', //默认透明
  1145. shadowBlur: 10
  1146. }
  1147. },
  1148. pointer : {
  1149. width : 2
  1150. },
  1151. title : {
  1152. show : true,
  1153. offsetCenter: [0, '100%'], // x, y,单位px
  1154. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1155. fontWeight: 'bolder',
  1156. fontSize: 10,
  1157. color: '#fff',
  1158. }
  1159. },
  1160. detail : {
  1161. formatter:'{value}',
  1162. offsetCenter: [0, '30%'], // x, y,单位px
  1163. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1164. fontWeight: 'bolder',
  1165. fontSize: 14,
  1166. color: '#fff'
  1167. }
  1168. },
  1169. data:[{value: 48, name: '功放过温告警'}]
  1170. }
  1171. ]
  1172. };
  1173. // 为echarts对象加载数据
  1174. myChart.setOption(option);
  1175. data= [20,180,220,170,50,90,100,180,300,150,210,170,50,70,110,77,59,30,50,190,210,390];
  1176. index=0;
  1177. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  1178. option.series[0].data[0].value = data[index++%data.length];
  1179. myChart.setOption(option, true);
  1180. }, 2000);
  1181. }
  1182. function echart_57() {
  1183. // 基于准备好的dom,初始化echarts实例
  1184. var myChart = echarts.init(document.getElementById('chart_57'));
  1185. var option = {
  1186. tooltip : {
  1187. formatter: "{a} <br/>{b} : {c}"
  1188. },
  1189. // toolbox: {
  1190. // show : true,
  1191. // feature : {
  1192. // mark : {show: true},
  1193. // restore : {show: true},
  1194. // saveAsImage : {show: true}
  1195. // }
  1196. // },
  1197. series : [
  1198. {
  1199. name:'指标',
  1200. type:'gauge',
  1201. min:0,
  1202. max:1000,
  1203. splitNumber: 10, // 分割段数,默认为5
  1204. radius: '65%',
  1205. axisLine: { // 坐标轴线
  1206. lineStyle: { // 属性lineStyle控制线条样式
  1207. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  1208. width: 2, //仪表盘外围圆宽度
  1209. shadowColor : '#fff', //默认透明
  1210. shadowBlur: 10
  1211. }
  1212. },
  1213. axisTick: { // 坐标轴小标记
  1214. splitNumber: 5, // 每份split细分多少段
  1215. length :6, // 属性length控制线长
  1216. lineStyle: { // 属性lineStyle控制线条样式
  1217. color: 'auto'
  1218. }
  1219. },
  1220. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  1221. show:false,
  1222. },
  1223. splitLine: { // 分隔线
  1224. show: true, // 默认显示,属性show控制显示与否
  1225. length :2, // 属性length控制线长
  1226. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1227. width:2,
  1228. color: '#fff',
  1229. shadowColor : '#fff', //默认透明
  1230. shadowBlur: 10
  1231. }
  1232. },
  1233. pointer : {
  1234. width : 2
  1235. },
  1236. title : {
  1237. show : true,
  1238. offsetCenter: [0, '100%'], // x, y,单位px
  1239. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1240. fontWeight: 'bolder',
  1241. fontSize: 10,
  1242. color: '#fff',
  1243. }
  1244. },
  1245. detail : {
  1246. formatter:'{value}',
  1247. offsetCenter: [0, '30%'], // x, y,单位px
  1248. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1249. fontWeight: 'bolder',
  1250. fontSize: 14,
  1251. color: '#fff'
  1252. }
  1253. },
  1254. data:[{value: 554, name: '下行输入欠功率告警'}]
  1255. }
  1256. ]
  1257. };
  1258. // 为echarts对象加载数据
  1259. myChart.setOption(option);
  1260. // setInterval(function (){
  1261. // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
  1262. // myChart.setOption(option,true);
  1263. // },2000);
  1264. data= [600,580,700,770,850,960,500,670,700,450,670,470,780,490,520,600,690,700,750,870,670,800];
  1265. index=0;
  1266. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  1267. option.series[0].data[0].value = data[index++%data.length];
  1268. myChart.setOption(option, true);
  1269. }, 2000);
  1270. }
  1271. function echart_58() {
  1272. // 基于准备好的dom,初始化echarts实例
  1273. var myChart = echarts.init(document.getElementById('chart_58'));
  1274. var option = {
  1275. tooltip : {
  1276. formatter: "{a} <br/>{b} : {c}"
  1277. },
  1278. // toolbox: {
  1279. // show : true,
  1280. // feature : {
  1281. // mark : {show: true},
  1282. // restore : {show: true},
  1283. // saveAsImage : {show: true}
  1284. // }
  1285. // },
  1286. series : [
  1287. {
  1288. name:'指标',
  1289. type:'gauge',
  1290. min:0,
  1291. max:1000,
  1292. splitNumber: 10, // 分割段数,默认为5
  1293. radius: '68%',
  1294. axisLine: { // 坐标轴线
  1295. lineStyle: { // 属性lineStyle控制线条样式
  1296. color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
  1297. width: 2, //仪表盘外围圆宽度
  1298. shadowColor : '#fff', //默认透明
  1299. shadowBlur: 10
  1300. }
  1301. },
  1302. axisTick: { // 坐标轴小标记
  1303. splitNumber: 5, // 每份split细分多少段
  1304. length :6, // 属性length控制线长
  1305. lineStyle: { // 属性lineStyle控制线条样式
  1306. color: 'auto'
  1307. }
  1308. },
  1309. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  1310. show:false,
  1311. },
  1312. splitLine: { // 分隔线
  1313. show: true, // 默认显示,属性show控制显示与否
  1314. length :2, // 属性length控制线长
  1315. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1316. width:2,
  1317. color: '#fff',
  1318. shadowColor : '#fff', //默认透明
  1319. shadowBlur: 10
  1320. }
  1321. },
  1322. pointer : {
  1323. width : 2
  1324. },
  1325. title : {
  1326. show : true,
  1327. offsetCenter: [0, '100%'], // x, y,单位px
  1328. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1329. fontWeight: 'bolder',
  1330. fontSize: 10,
  1331. color: '#fff',
  1332. }
  1333. },
  1334. detail : {
  1335. formatter:'{value}',
  1336. offsetCenter: [0, '30%'], // x, y,单位px
  1337. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1338. fontWeight: 'bolder',
  1339. fontSize: 14,
  1340. color: '#fff'
  1341. }
  1342. },
  1343. data:[{value: 46, name: '门禁告警'}]
  1344. }
  1345. ]
  1346. };
  1347. // 为echarts对象加载数据
  1348. myChart.setOption(option);
  1349. data= [10,230,320,170,55,300,400,67,100,150,210,370,423,90,180,270,390,420,70,190,220,390];
  1350. index=0;
  1351. setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
  1352. option.series[0].data[0].value = data[index++%data.length];
  1353. myChart.setOption(option, true);
  1354. }, 2000);
  1355. }
  1356. function echart_6(){
  1357. var myChart = echarts.init(document.getElementById('chart_6'));
  1358. option = {
  1359. // backgroundColor: '#18163B',
  1360. title: {
  1361. text: '通过告警算法预测故障原因',
  1362. textStyle:{
  1363. color:'#fff', //颜色
  1364. fontStyle:'normal', //风格
  1365. fontWeight:'normal', //粗细
  1366. // fontFamily:'Microsoft yahei', //字体
  1367. fontSize:12, //大小
  1368. },left:'center'
  1369. },
  1370. grid: {
  1371. top: '10%',
  1372. right: '5%',
  1373. left: '10%',
  1374. bottom: '30%'
  1375. },
  1376. xAxis: [{
  1377. type: 'category',
  1378. color: '#fff',
  1379. data: ['参数', '延伸系统', '老旧隐患','设备', '传输/线路', '动力'],
  1380. axisPointer: {
  1381. type: 'line'
  1382. },
  1383. axisLine: {
  1384. lineStyle: {
  1385. color: '#272456'
  1386. }
  1387. },
  1388. axisLabel: {
  1389. margin: 10,
  1390. color: '#fff',
  1391. textStyle: {
  1392. fontSize: 10
  1393. },
  1394. },
  1395. }],
  1396. yAxis: [{
  1397. min: 0,
  1398. max: 600,
  1399. splitNumber : 4,
  1400. axisLabel: {
  1401. formatter: '{value}',
  1402. color: '#fff',
  1403. interval:0,
  1404. textStyle: {
  1405. fontSize: 10
  1406. },
  1407. },
  1408. axisLine: {
  1409. show: false
  1410. },
  1411. splitLine: {
  1412. lineStyle: {
  1413. color: '#272456'
  1414. }
  1415. }
  1416. }],
  1417. series: [{
  1418. type: 'bar',
  1419. data: [80, 150, 250, 240, 320, 550],
  1420. barWidth: '10px',
  1421. itemStyle: {
  1422. normal: {
  1423. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1424. offset: 0,
  1425. color: '#41E1D4' // 0% 处的颜色
  1426. }, {
  1427. offset: 1,
  1428. color: '#10A7DB' // 100% 处的颜色
  1429. }], false),
  1430. barBorderRadius: [5, 5, 0, 0],
  1431. shadowColor: 'rgba(0,255,225,1)',
  1432. shadowBlur: 4,
  1433. }
  1434. },
  1435. // label: {
  1436. // normal: {
  1437. // show: true,
  1438. // lineHeight: 10,
  1439. // width: 60,
  1440. // height: 20,
  1441. // backgroundColor: '#252453',
  1442. // borderRadius: 200,
  1443. // position: ['-8', '-30'],
  1444. // distance: 1,
  1445. // formatter: [
  1446. // ' {d|●}',
  1447. // ' {a|{c}} \n',
  1448. // ' {b|}'
  1449. // ].join(','),
  1450. // rich: {
  1451. // d: {
  1452. // color: '#3CDDCF',
  1453. // },
  1454. // a: {
  1455. // color: '#fff',
  1456. // align: 'center',
  1457. // },
  1458. // b: {
  1459. // width: 1,
  1460. // height: 30,
  1461. // borderWidth: 1,
  1462. // borderColor: '#234e6c',
  1463. // align: 'left'
  1464. // },
  1465. // }
  1466. // }
  1467. // }
  1468. }]
  1469. };
  1470. myChart.setOption(option);
  1471. }
  1472. function echart_7(){
  1473. var myChart = echarts.init(document.getElementById('chart_7'));
  1474. function showProvince() {
  1475. myChart.setOption(option = {
  1476. backgroundColor:'' ,//设置无背景色
  1477. visualMap: {
  1478. show: false,
  1479. min: 0,
  1480. max: 100,
  1481. left: 'left',
  1482. top: 'bottom',
  1483. text: ['高', '低'], // 文本,默认为数值文本
  1484. calculable: true,
  1485. // inRange: {
  1486. // color: ['yellow', 'lightskyblue', 'orangered']
  1487. // }
  1488. },
  1489. grid: {
  1490. // right: '2%',//生成的图片和右边的间距’,
  1491. // bottom: '10%',//生成的图片和底部的间距
  1492. top: '-20px',//生成的图片和顶部的间距
  1493. containLabel: true//为ture才会生效以上的设置
  1494. },
  1495. series: [{
  1496. type: 'map',
  1497. mapType: 'zhejiang',
  1498. roam: true,
  1499. label: {
  1500. normal: {
  1501. show: true,
  1502. textStyle: {
  1503. color: '#fff'
  1504. }
  1505. },
  1506. emphasis: {
  1507. textStyle: {
  1508. color: '#fff'
  1509. }
  1510. }
  1511. },
  1512. // itemStyle: {
  1513. // normal: {
  1514. // borderColor: '#389BB7',
  1515. // areaColor: '#fff',
  1516. // },
  1517. // emphasis: {
  1518. // areaColor: '#389BB7',
  1519. // borderWidth: 0
  1520. // }
  1521. // },
  1522. itemStyle: {
  1523. normal: {
  1524. borderColor: 'rgba(147, 235, 248, 1)',
  1525. borderWidth: 1,
  1526. areaColor: {
  1527. type: 'radial',
  1528. x: 0.5,
  1529. y: 0.5,
  1530. r: 0.8,
  1531. colorStops: [{
  1532. offset: 0,
  1533. color: 'rgba(175,238,238, 0)' // 0% 处的颜色
  1534. }, {
  1535. offset: 1,
  1536. color: 'rgba(47,79,79, .1)' // 100% 处的颜色
  1537. }],
  1538. globalCoord: false // 缺省为 false
  1539. },
  1540. shadowColor: 'rgba(128, 217, 248, 1)',
  1541. // shadowColor: 'rgba(255, 255, 255, 1)',
  1542. shadowOffsetX: -2,
  1543. shadowOffsetY: 2,
  1544. shadowBlur: 10
  1545. },
  1546. emphasis: {
  1547. areaColor: '#389BB7',
  1548. borderWidth: 0
  1549. }
  1550. },
  1551. animation: false,
  1552. data: [{
  1553. name: '丽水',
  1554. }, {
  1555. name: '杭州',
  1556. }, {
  1557. name: '温州',
  1558. }, {
  1559. name: '宁波',
  1560. }, {
  1561. name: '舟山',
  1562. // value: 88 去掉则透明
  1563. }, {
  1564. name: '台州',
  1565. }, {
  1566. name: '金华',
  1567. }, {
  1568. name: '衢州',
  1569. }, {
  1570. name: '绍兴',
  1571. }, {
  1572. name: '嘉兴',
  1573. }, {
  1574. name: '湖州',
  1575. }]
  1576. }]
  1577. });
  1578. }
  1579. var currentIdx = 0;
  1580. showProvince();
  1581. // 使用刚指定的配置项和数据显示图表。
  1582. window.addEventListener("resize", function () {
  1583. myChart.resize();
  1584. });
  1585. }
  1586. function echart_8(){
  1587. var myChart = echarts.init(document.getElementById('chart_8'));
  1588. var data = [{
  1589. "name": "FDD-1800小区占比",
  1590. "value": 10
  1591. }, {
  1592. "name": "FDD-900小区占比",
  1593. "value": 10
  1594. }, {
  1595. "name": "A频小区占比",
  1596. "value": 10
  1597. }, {
  1598. "name": "E频小区占比",
  1599. "value": 10
  1600. }, {
  1601. "name": "D频小区占比",
  1602. "value": 20
  1603. }, {
  1604. "name": "F频小区占比",
  1605. "value": 30
  1606. }, ]
  1607. option = {
  1608. color: ['#A0CE3A', '#31C5C0', '#1E9BD1', '#0F347B', '#585247', '#7F6AAD', '#009D85', "rgba(250,250,250,0.3)"],
  1609. // backgroundColor: '#000',
  1610. title: {
  1611. // text: '总数',
  1612. // subtext: 7789,
  1613. // textStyle: {
  1614. // color: '#f2f2f2',
  1615. // fontSize: 16,
  1616. // // align: 'center'
  1617. // },
  1618. // subtextStyle: {
  1619. // fontSize: 30,
  1620. // color: ['#ff9d19']
  1621. // },
  1622. // x: 'center',
  1623. // y: 'center',
  1624. },
  1625. grid: {
  1626. bottom: 150,
  1627. left: 100,
  1628. right: '10%'
  1629. },
  1630. // legend: {
  1631. // orient: 'vertical',
  1632. // top: "middle",
  1633. // right: "1%",
  1634. // textStyle: {
  1635. // color: '#f2f2f2',
  1636. // fontSize: 12,
  1637. // },
  1638. // itemWidth: 15, // 设置宽度
  1639. // itemHeight: 8, // 设置高度
  1640. // icon: 'roundRect',
  1641. // data: data,
  1642. // },
  1643. series: [
  1644. // 主要展示层的
  1645. {
  1646. radius: ['20%', '51%'],
  1647. center: ['45%', '45%'],
  1648. type: 'pie',
  1649. label: {
  1650. normal: {
  1651. show: true,
  1652. formatter: "{b}",
  1653. textStyle: {
  1654. fontSize: 10,
  1655. },
  1656. position: 'outside'
  1657. },
  1658. emphasis: {
  1659. show: true
  1660. }
  1661. },
  1662. labelLine: {
  1663. normal: {
  1664. show: true,
  1665. length: 5,
  1666. length2: 10
  1667. },
  1668. emphasis: {
  1669. show: true
  1670. }
  1671. },
  1672. // name: "民警训练总量",
  1673. data: data,
  1674. },
  1675. // 边框的设置
  1676. {
  1677. radius: ['20%', '26%'],
  1678. center: ['45%', '45%'],
  1679. type: 'pie',
  1680. label: {
  1681. normal: {
  1682. show: false
  1683. },
  1684. emphasis: {
  1685. show: false
  1686. }
  1687. },
  1688. labelLine: {
  1689. normal: {
  1690. show: false
  1691. },
  1692. emphasis: {
  1693. show: false
  1694. }
  1695. },
  1696. animation: false,
  1697. tooltip: {
  1698. show: false
  1699. },
  1700. data: [{
  1701. value: 1,
  1702. itemStyle: {
  1703. color: "rgba(250,250,250,0.3)",
  1704. },
  1705. }],
  1706. }, {
  1707. name: '外边框',
  1708. type: 'pie',
  1709. clockWise: false, //顺时加载
  1710. hoverAnimation: false, //鼠标移入变大
  1711. center: ['45%', '45%'],
  1712. radius: ['55%', '55%'],
  1713. label: {
  1714. normal: {
  1715. show: false
  1716. }
  1717. },
  1718. data: [{
  1719. value: 9,
  1720. name: '',
  1721. itemStyle: {
  1722. normal: {
  1723. borderWidth: 2,
  1724. borderColor: '#0b5263'
  1725. }
  1726. }
  1727. }]
  1728. },
  1729. ]
  1730. };// 使用刚指定的配置项和数据显示图表。
  1731. myChart.setOption(option);
  1732. }
  1733. // function echart_91() {
  1734. // var myChart = echarts.init(document.getElementById('chart_91'));
  1735. // var option = {
  1736. // title: {
  1737. // text: '4G覆盖能力',
  1738. // textStyle:{
  1739. // color:'#fff', //颜色
  1740. // fontStyle:'normal', //风格
  1741. // fontWeight:'normal', //粗细
  1742. // // fontFamily:'Microsoft yahei', //字体
  1743. // fontSize:14, //大小
  1744. // align:'center' //水平对齐
  1745. // },left:'center'
  1746. // },
  1747. // color:['#ef5f2b','#4a6ac4'],
  1748. // tooltip: {},
  1749. // legend: {
  1750. // data:['杭州','全省'],
  1751. // textStyle:{
  1752. // color:"#fff",
  1753. // fontSize: 10
  1754. // },
  1755. // icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
  1756. // itemWidth: 8, // 设置宽度
  1757. // itemHeight: 8, // 设置高度
  1758. // itemGap: 10,// 设置间距
  1759. // padding: [40, 10, 4, 20] // [5, 10, 15, 20]
  1760. // },
  1761. // dataset: {
  1762. // source: [
  1763. // ['x','MR覆盖率','4G驻留比','VO-LTE驻留比'],
  1764. // ['杭州', 98, 100, 98],
  1765. // ['全省', 98, 100, 98]
  1766. // ]
  1767. // },
  1768. // xAxis: [
  1769. // {
  1770. // type: 'category', gridIndex: 0,
  1771. // //设置坐标轴字体颜色和宽度
  1772. // axisLine: {
  1773. // lineStyle: {
  1774. // color: "#fff",
  1775. // // width: 20,
  1776. // }
  1777. // },
  1778. // axisLabel: { //x轴文字样式
  1779. // textStyle: {
  1780. // fontSize: 10
  1781. // }
  1782. // },
  1783. // }
  1784. // ],
  1785. // yAxis: [
  1786. // {
  1787. // gridIndex: 0,
  1788. // //设置坐标轴字体颜色和宽度
  1789. // axisLine: {
  1790. // lineStyle: {
  1791. // color: "#fff",
  1792. // }
  1793. // },
  1794. // axisLabel: { //x轴文字样式
  1795. // textStyle: {
  1796. // fontSize: 10
  1797. // }
  1798. // },
  1799. // }
  1800. // ],
  1801. // grid: [
  1802. // {
  1803. // top: '60',
  1804. // right: '5',
  1805. // bottom:'20'
  1806. // }
  1807. // ],
  1808. // series: [
  1809. // // These series are in the first grid.
  1810. // {type: 'bar', seriesLayoutBy: 'row', barWidth:20, barGap:'10%',},
  1811. // {type: 'bar', seriesLayoutBy: 'row', barWidth:20, barGap:'10%',},
  1812. // // These series are in the second grid.
  1813. // ]
  1814. // };
  1815. // // 使用刚指定的配置项和数据显示图表。
  1816. // myChart.setOption(option);
  1817. // // window.addEventListener("resize", function () {
  1818. // // myChart.resize();
  1819. // // })
  1820. // }
  1821. // function echart_92() {
  1822. // var myChart = echarts.init(document.getElementById('chart_92'));
  1823. // var option = {
  1824. // title: {
  1825. // text: '业务承载',
  1826. // textStyle:{
  1827. // color:'#fff', //颜色
  1828. // fontStyle:'normal', //风格
  1829. // fontWeight:'normal', //粗细
  1830. // // fontFamily:'Microsoft yahei', //字体
  1831. // fontSize:14, //大小
  1832. // align:'center' //水平对齐
  1833. // },left:'center'
  1834. // },
  1835. // color:['#ef5f2b','#4a6ac4'],
  1836. // tooltip: {},
  1837. // legend: {
  1838. // data:['业务量','业务占比'],
  1839. // textStyle:{
  1840. // color:"#fff",
  1841. // fontSize: 10
  1842. // },
  1843. // icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
  1844. // itemWidth: 8, // 设置宽度
  1845. // itemHeight: 8, // 设置高度
  1846. // itemGap: 10,// 设置间距
  1847. // padding: [40, 10, 4, 20] // [5, 10, 15, 20]
  1848. // },
  1849. // dataset: {
  1850. // source: [
  1851. // ['x','VOLTE话务量(万ERL)','LTE流量TB'],
  1852. // ['业务量', 310, 750],
  1853. // ['业务占比', 10, 10]
  1854. // ]
  1855. // },
  1856. // xAxis: [
  1857. // {
  1858. // type: 'category', gridIndex: 0,
  1859. // //设置坐标轴字体颜色和宽度
  1860. // axisLine: {
  1861. // lineStyle: {
  1862. // color: "#fff",
  1863. // // width: 20,
  1864. // }
  1865. // },
  1866. // axisLabel: { //x轴文字样式
  1867. // textStyle: {
  1868. // fontSize: 10
  1869. // }
  1870. // },
  1871. // }
  1872. // ],
  1873. // yAxis: [
  1874. // {
  1875. // gridIndex: 0,
  1876. // //设置坐标轴字体颜色和宽度
  1877. // axisLine: {
  1878. // lineStyle: {
  1879. // color: "#fff",
  1880. // }
  1881. // },
  1882. // axisLabel: { //x轴文字样式
  1883. // textStyle: {
  1884. // fontSize: 10
  1885. // }
  1886. // },
  1887. // }
  1888. // ],
  1889. // grid: [
  1890. // {
  1891. // top: '60',
  1892. // right: '5',
  1893. // bottom:'20'
  1894. // }
  1895. // ],
  1896. // series: [
  1897. // // These series are in the first grid.
  1898. // {type: 'bar', seriesLayoutBy: 'row', barWidth:30, barGap:'10%',},
  1899. // {type: 'bar', seriesLayoutBy: 'row', barWidth:30, barGap:'10%',},
  1900. // // These series are in the second grid.
  1901. // ]
  1902. // };
  1903. // // 使用刚指定的配置项和数据显示图表。
  1904. // myChart.setOption(option);
  1905. // // window.addEventListener("resize", function () {
  1906. // // myChart.resize();
  1907. // // })
  1908. // }
  1909. //
  1910. //点击跳转
  1911. // $('#chart_map').click(function(){
  1912. // window.location.href = './page/index.html';
  1913. // });
  1914. // $('.t_btn2').click(function(){
  1915. // window.location.href = "./page/index.html?id=2";
  1916. // });
  1917. // $('.t_btn3').click(function(){
  1918. // window.location.href = "./page/index.html?id=3";
  1919. // });
  1920. // $('.t_btn4').click(function(){
  1921. // window.location.href = "./page/index.html?id=4";
  1922. // });
  1923. // $('.t_btn5').click(function(){
  1924. // window.location.href = "./page/index.html?id=5";
  1925. // });
  1926. // $('.t_btn6').click(function(){
  1927. // window.location.href = "./page/index.html?id=6";
  1928. // });
  1929. // $('.t_btn7').click(function(){
  1930. // window.location.href = "./page/index.html?id=7";
  1931. // });
  1932. // $('.t_btn8').click(function(){
  1933. // window.location.href = "./page/index.html?id=8";
  1934. // });
  1935. // $('.t_btn9').click(function(){
  1936. // window.location.href = "./page/index.html?id=9";
  1937. // });
  1938. });