1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065 |
- //数字跳动
- // var num = document.getElementByName("id").innerText;
- // // alert(num);
- // function modify(){
- // //修改
- // num=parseInt(num)+1;
- // // alert("00000"+num);
- // document.getElementByName("id").innerText=num;
- // };
- // window.setInterval("modify()",60000);
- var s;
- function resize() {
- s = window.screen.width / 1920;
- document.body.style.transformOrigin = '0 0';
- document.body.style.transform = 'scale(' + s + ',' + s + ')';
- document.body.style.width = window.innerWidth / s + 'px';
- document.body.style.height = window.innerHeight / s + 'px';
- }
- window.onresize = function () {
- resize();
- }
- resize();
- var docs = document.getElementsByName("id");
- function modify(){
- //修改
- for (var i = 0; i < docs.length; i++) {
- var num = docs[i].innerText;
- num=parseInt(num)+1;
- docs[i].innerText=num;
- }
-
- }
- window.setInterval("modify()",60000);
- $(function () {
- echart_1();
- echart_2();
- echart_22();
- echart_24();
- echart_15();
- echart_3();
- echart_33();
-
- echart_5();
- echart_52();
- echart_53();
- echart_54();
- echart_55();
- echart_56();
- echart_57();
- echart_58();
- echart_6();
- echart_7();
- echart_8();
- echart_91();
- echart_92();
- // modify();
- function echart_1() {
-
- var myChart = echarts.init(document.getElementById('chart_1'));
-
- var option = {
- // title: {
- // text: 'ECharts 入门示例'
- // },
- color:['#ef5f2b','#4a6ac4','#77cd63','#a325c0','#369ebc','#e2a83f'],
- tooltip: {},
- legend: {
- data:['GSM','WCDMA','LTE','WLAN','NB-LOT','LORA'],
- textStyle:{
- color:"#fff",
- fontSize: 10
- },
- icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- itemGap: 10,// 设置间距
- padding: [40, 10, 15, 20] // [5, 10, 15, 20]
- },
- dataset: {
- source: [
- ['x','需整改','需增补','需新建','需扩容'],
- ['GSM', 10, 0, 0, 0, 0, 0],
- ['WCDMA', 20, 0, 0, 0, 0, 0],
- ['LTE', 125, 124, 226, 38, 45, 29],
- ['WLAN', 38, 36, 148, 13, 25, 10],
- ['NB-LOT', 25, 43, 38, 30],
- ['LORA', 28, 31, 26, 12]
- ]
- },
- xAxis: [
- {
- // data: ['需整改','需增补','需新建','需扩容'],
- type: 'category', gridIndex: 0,
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {
- color: "#fff",
- }
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 13
- }
- },
- }
- ],
- yAxis: [
- {
- gridIndex: 0,
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {
- color: "#fff",
- }
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- }
- ],
- grid: [
- {top: '22%',
- bottom: '20%',
- // left: '10%',
- // right:'5%'
- },
- ],
- series: [
- // These series are in the first grid.
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:14, barGap:'10%',},
- // These series are in the second grid.
- ]
-
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- // window.addEventListener("resize", function () {
- // myChart.resize();
- // })
- }
-
- function echart_22() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_22'));
- option = {
- title: {
- text: '在网直放站现状',top:'10%',left:'center',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- textAlign:'center' //水平对齐
- },
-
- },
- color:['#218BB4','#5AA949','#C23531','#7121B4'],
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- x: 'left',
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- textStyle:{
- color:"#fff",
- fontSize: 10
- },
- orient: 'vertical',
- left: 'center', //图例距离左的距离
- top:'24%',
- data:['干线放大器','模拟直放站','','无线直放站','数字直放站'],//图例换行
- },
- grid: {
- left: '-20%',//生成的图片和左边的间距
- // right: '2%',//生成的图片和右边的间距’,
- // bottom: '10%',//生成的图片和底部的间距
- top: '20%',//生成的图片和顶部的间距
- containLabel: true//为ture才会生效以上的设置
- },
- series: [
- {
- name:'count',
- type:'pie',
- radius: ['30%', '55%'],
- center: ['50%', '70%'], //在div中位置
- avoidLabelOverlap: false,
- label: {
- normal: {
- show: true,
- formatter: '{d}%', //显示的内容
- position: 'inner',
- textStyle: {
- fontSize: '10',
- color:'#fff'
- }
- },
- // emphasis: {
- // show: true,
- // textStyle: {
- // fontSize: '12',
- // fontWeight: 'bold'
- // }
- // }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data:[
- {value:10, name:'干线放大器'},
- {value:5, name:'无线直放站'},
- {value:15, name:'模拟直放站'},
- {value:70, name:'数字直放站'}
- ]
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- }
- function echart_2() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_2'));
- option = {
- title: {
- text: '在网分布系统现状',top:'10%',left:'center',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- textAlign:'center' //水平对齐
- },
-
- },
- color:['#218BB4','#5AA949','#7121B4','#C23531'],
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- x: 'left',
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- textStyle:{
- color:"#fff",
- fontSize: 10
- },
- orient: 'vertical',
- left: 'center', //图例距离左的距离
- top:'24%',
- data:['已归档站点','已拆除站点','','在建站点','改造站点'],//图例换行
- },
- grid: {
- left: '-20%',//生成的图片和左边的间距
- // right: '2%',//生成的图片和右边的间距’,
- // bottom: '10%',//生成的图片和底部的间距
- top: '25%',//生成的图片和顶部的间距
- containLabel: true//为ture才会生效以上的设置
- },
- series: [
- {
- name:'count',
- type:'pie',
- radius: ['30%', '55%'],
- center: ['50%', '70%'], //在div中位置
- avoidLabelOverlap: false,
- label:{
- normal: {
- show: true,
- position: 'inner',
- formatter: '{d}%', //显示的内容
- textStyle: {
- fontSize: '10',
- color:'#fff'
- }
- },
- emphasis: {
- show: true,
- textStyle: {
- fontSize: '12',
- fontWeight: 'bold'
- }
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data:[
- {value:70, name:'已归档站点'},
- {value:5, name:'已拆除站点'},
- {value:10, name:'在建站点'},
- {value:15, name:'改造站点'}
- ]
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- }
-
- //echart_3
- function echart_3() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_3'));
- myChart.clear();
- option = {
- // title: {
- // text: '在网分布系统现状
- // 在网直放站现状
- // 分地市分布系统现状'
- // },
- title: {
- text: '分地市分布系统现状',top:'0%',left:'center',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- textAlign:'center' //水平对齐
- },
-
- },
- tooltip: {
- trigger: 'axis'
- },
- textStyle : {
- fontWeight : 'normal', //显示字体粗细等
- fontSize : 10
- },
- legend: {
- data:['已归档站点数','已拆除站点数','在建站点','改造站点'],
- textStyle:{
- fontSize: 10,
- color: '#fff'
- },
- top: '10%'
- },
- grid: {
- top: '20%',
- left: '3%',
- right: '4%',
- bottom: '5%',
- containLabel: true
- },
- color: ['#FF4949','#FFA74D','#77cd63','#44AFF0',],
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['杭州','衢州','舟山','宁波','温州','嘉兴','金华','绍兴','丽水','台州','湖州'],
- splitLine: {
- show: false
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- axisLine: {
- lineStyle: {
- color: '#fff'
- }
- }
- },
- yAxis: {
- // name: '数量',
- type: 'value',
- splitLine: {
- show: false
- },
- axisLabel: { //y轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- axisLine: {
- lineStyle: {
- color: '#fff'
- }
- }
- },
- series: [
- {
- name:'已归档站点数',
- type:'line',
- data:[4550, 1260, 710, 3970, 3467, 3400, 2989, 2019, 1800, 1802, 1780]
- },
- {
- name:'已拆除站点数',
- type:'line',
- data:[905, 1, 1, 230, 480, 400, 20, 0, 0, 0, 0]
- },
- {
- name:'在建站点',
- type:'line',
- data:[600, 450, 140, 600, 520, 450, 490, 300, 0, 500, 0]
- },
- {
- name:'改造站点',
- type:'line',
- data:[700, 490, 150, 660, 520, 450, 490, 300, 0, 500, 0]
- }
-
- ]
- };
- myChart.setOption(option);
- }
- function echart_33() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_33'));
- myChart.clear();
- var option = {
- title: {
- text: '材料数量统计',top:'4%',left:'center',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- textAlign:'center' //水平对齐
- },
-
- },
- color: ['#38b3f1'],
- tooltip: {
- trigger: 'axis',
- // axisPointer: { // 坐标轴指示器,坐标轴触发有效
- // type: 'shadow', // 默认为直线,可选为:'line' | 'shadow'
- // shadowOffsetX: 10
-
- // }
- },
- textStyle: {
- color: '#ccc'
- },
- grid: {
- top: '20%',
- left: '3%',
- right: '3%',
- bottom: '1%',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: ["合路器","功分器","耦合器","全向吸顶天线","定向吸顶天线","板状天线","美化天线","八木天线"],
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 10,
- interval: 0
- }
- },
- }],
- yAxis: [{
- type: 'value',
- axisLabel: { //y轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- }],
- series: [{
- name: '直接访问',
- type: 'bar',
- barWidth: '40%',
- // barGap:'10%',
- barCategoryGap : '5%',
- data: ["37077","1404960","2012952","2593964","162313","648970","35953","625"]
- }]
- };
- myChart.setOption(option);
- }
- function echart_24() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_24'));
- option = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)"
- },
- title: {
- text: '现网规模',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- textAlign:'center' //水平对齐
- },left:'center'
- },
- color:['#ef5f2b','#4a6ac4','#77cd63'],
- legend: {
- orient: 'vertical',
- x: 'left',
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- textStyle:{
- color:"#fff",
- fontSize: 10
- },
- orient: 'horizontal',
- left: 'center', //图例距离左的距离
- top:'20%',
- data:['宏站','室分','微站'],//图例换行
- },
- grid: {
- left: '-20%',//生成的图片和左边的间距
- // right: '2%',//生成的图片和右边的间距’,
- // bottom: '10%',//生成的图片和底部的间距
- top: '20%',//生成的图片和顶部的间距
- containLabel: true//为ture才会生效以上的设置
- },
- series: [
- {
- name:'count',
- type:'pie',
- radius: ['30%', '55%'],
- center: ['48%', '65%'], //在div中位置
- avoidLabelOverlap: false,
- label: {
- normal: {
- show: true,
- position: 'inner',
- formatter: '{d}%', //显示的内容
- },
- emphasis: {
- show: true,
- textStyle: {
- fontSize: '12',
- fontWeight: 'bold'
- }
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data:[
- {value:60, name:'宏站'},
- {value:30, name:'室分'},
- {value:10, name:'微站'}
- ]
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- }
- function echart_15() {
-
- var myChart = echarts.init(document.getElementById('chart_15'));
-
- var option = {
- title: {
- text: '档期规模',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:14, //大小
- align:'center' //水平对齐
- },left:'center'
- },
- color:['#ef5f2b','#4a6ac4','#77cd63'],
- tooltip: {},
- legend: {
- data:['宏站','室分','微站',],
- textStyle:{
- color:"#fff",
- fontSize: 10
- },
- icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
- itemWidth: 8, // 设置宽度
- itemHeight: 8, // 设置高度
- itemGap: 10,// 设置间距
- padding: [40, 10, 4, 20] // [5, 10, 15, 20]
- },
- dataset: {
- source: [
- ['x','当期规模数','当期拍照数','当期在网数'],
- ['宏站', 1250, 1400, 1100],
- ['室分', 750, 760, 450],
- ['微站', 980, 980, 580]
- ]
- },
- xAxis: [
- {
-
- type: 'category', gridIndex: 0,
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {
- color: "#fff",
- }
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- }
- ],
- yAxis: [
- {
- gridIndex: 0,
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {
- color: "#fff",
- }
- },
- axisLabel: { //x轴文字样式
- textStyle: {
- fontSize: 10
- }
- },
- }
- ],
- grid: [
- {
- top: '60',
- right: '5',
- bottom:'20'
- }
- ],
- series: [
- // These series are in the first grid.
- {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
- {type: 'bar', seriesLayoutBy: 'row', barWidth:12, barGap:'10%',},
- // These series are in the second grid.
- ]
-
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- // window.addEventListener("resize", function () {
- // myChart.resize();
- // })
- }
- //ditu
- // function echart_4() {
- // // 基于准备好的dom,初始化echarts实例
- // var myChart = echarts.init(document.getElementById('chart_4'));
- // }
- function echart_5() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_5'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- center: ["50%", "60%"], // 仪表位置
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: {
- show:false
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 554, name: '位置告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- // setInterval(function (){
- // option.series[0].data[0].value = (Math.random()*20).toFixed(2) - 0;
- // myChart.setOption(option,true);
- // },2000);
- data= [600,580,620,670,550,560,600,670,700,750,610,670,723,590,780,770,790,820,870,890,920,990];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_52() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_52'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- center: ["50%", "60%"], // 仪表位置
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show: false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 242, name: '数字型号异常告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- // setInterval(function (){
- // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
- // myChart.setOption(option,true);
- // },2000);
- data= [300,380,420,370,450,360,500,470,500,550,410,570,423,590,480,470,540,620,570,690,770,650];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_53() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_53'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000, //表盘最大值
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- center: ["50%", "60%"], // 仪表位置
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 62, name: '监控无响应告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- data= [40,88,267,100,55,65,178,82,30,66,76,67,45,79,89,90,200,120,300,230,56,70];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_54() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_54'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- center: ["50%", "60%"], // 仪表位置
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 256, name: '接收电平强度告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- // setInterval(function (){
- // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
- // myChart.setOption(option,true);
- // },2000);
- data= [600,240,300,278,330,380,440,670,500,559,340,400,278,389,456,290,390,400,450,470,700,720];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_55() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_55'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 53, name: '光收发告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- // setInterval(function (){
- // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
- // myChart.setOption(option,true);
- // },2000);
- data= [100,180,220,320,450,160,200,270,300,450,610,270,323,490,320,370,490,520,670,700,720,890];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_56() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_56'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '65%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 48, name: '功放过温告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- data= [20,180,220,170,50,90,100,180,300,150,210,170,50,70,110,77,59,30,50,190,210,390];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_57() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_57'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '65%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 554, name: '下行输入欠功率告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- // setInterval(function (){
- // option.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0;
- // myChart.setOption(option,true);
- // },2000);
- data= [600,580,700,770,850,960,500,670,700,450,670,470,780,490,520,600,690,700,750,870,670,800];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_58() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('chart_58'));
- var option = {
- tooltip : {
- formatter: "{a} <br/>{b} : {c}"
- },
- // toolbox: {
- // show : true,
- // feature : {
- // mark : {show: true},
- // restore : {show: true},
- // saveAsImage : {show: true}
- // }
- // },
- series : [
- {
- name:'指标',
- type:'gauge',
- min:0,
- max:1000,
- splitNumber: 10, // 分割段数,默认为5
- radius: '68%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']],
- width: 2, //仪表盘外围圆宽度
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- splitNumber: 5, // 每份split细分多少段
- length :6, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
- show:false,
- },
- splitLine: { // 分隔线
- show: true, // 默认显示,属性show控制显示与否
- length :2, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- width:2,
- color: '#fff',
- shadowColor : '#fff', //默认透明
- shadowBlur: 10
- }
- },
- pointer : {
- width : 2
- },
- title : {
- show : true,
- offsetCenter: [0, '100%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 10,
- color: '#fff',
- }
- },
- detail : {
- formatter:'{value}',
- offsetCenter: [0, '30%'], // x, y,单位px
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- fontWeight: 'bolder',
- fontSize: 14,
- color: '#fff'
- }
- },
- data:[{value: 46, name: '门禁告警'}]
- }
- ]
- };
- // 为echarts对象加载数据
- myChart.setOption(option);
-
- data= [10,230,320,170,55,300,400,67,100,150,210,370,423,90,180,270,390,420,70,190,220,390];
- index=0;
- setInterval(function(){//将自己的值赋予 option.series[ 0 ].data[ 0 ].value
- option.series[0].data[0].value = data[index++%data.length];
- myChart.setOption(option, true);
- }, 2000);
-
- }
- function echart_6(){
- var myChart = echarts.init(document.getElementById('chart_6'));
- option = {
- // backgroundColor: '#18163B',
- title: {
- text: '通过告警算法预测故障原因',
- textStyle:{
- color:'#fff', //颜色
- fontStyle:'normal', //风格
- fontWeight:'normal', //粗细
- // fontFamily:'Microsoft yahei', //字体
- fontSize:12, //大小
-
- },left:'center'
- },
- grid: {
- top: '10%',
- right: '5%',
- left: '10%',
- bottom: '30%'
- },
- xAxis: [{
- type: 'category',
- color: '#fff',
- data: ['参数', '延伸系统', '老旧隐患','设备', '传输/线路', '动力'],
- axisPointer: {
- type: 'line'
- },
- axisLine: {
- lineStyle: {
- color: '#272456'
- }
- },
- axisLabel: {
- margin: 10,
- color: '#fff',
- textStyle: {
- fontSize: 10
- },
- },
- }],
- yAxis: [{
- min: 0,
- max: 600,
- splitNumber : 4,
- axisLabel: {
- formatter: '{value}',
- color: '#fff',
- interval:0,
- textStyle: {
- fontSize: 10
- },
- },
- axisLine: {
- show: false
- },
- splitLine: {
- lineStyle: {
- color: '#272456'
- }
- }
- }],
- series: [{
- type: 'bar',
- data: [80, 150, 250, 240, 320, 550],
- barWidth: '10px',
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#41E1D4' // 0% 处的颜色
- }, {
- offset: 1,
- color: '#10A7DB' // 100% 处的颜色
- }], false),
- barBorderRadius: [5, 5, 0, 0],
- shadowColor: 'rgba(0,255,225,1)',
- shadowBlur: 4,
- }
- },
- // label: {
- // normal: {
- // show: true,
- // lineHeight: 10,
- // width: 60,
- // height: 20,
- // backgroundColor: '#252453',
- // borderRadius: 200,
- // position: ['-8', '-30'],
- // distance: 1,
- // formatter: [
- // ' {d|●}',
- // ' {a|{c}} \n',
- // ' {b|}'
- // ].join(','),
- // rich: {
- // d: {
- // color: '#3CDDCF',
- // },
- // a: {
- // color: '#fff',
- // align: 'center',
- // },
- // b: {
- // width: 1,
- // height: 30,
- // borderWidth: 1,
- // borderColor: '#234e6c',
- // align: 'left'
- // },
- // }
- // }
- // }
- }]
- };
- myChart.setOption(option);
- }
- function echart_7(){
- var myChart = echarts.init(document.getElementById('chart_7'));
- function showProvince() {
- myChart.setOption(option = {
- backgroundColor:'' ,//设置无背景色
- visualMap: {
- show: false,
- min: 0,
- max: 100,
- left: 'left',
- top: 'bottom',
- text: ['高', '低'], // 文本,默认为数值文本
- calculable: true,
- // inRange: {
- // color: ['yellow', 'lightskyblue', 'orangered']
- // }
- },
- grid: {
-
- // right: '2%',//生成的图片和右边的间距’,
- // bottom: '10%',//生成的图片和底部的间距
- top: '-20px',//生成的图片和顶部的间距
- containLabel: true//为ture才会生效以上的设置
- },
- series: [{
- type: 'map',
- mapType: 'zhejiang',
- roam: true,
- label: {
- normal: {
- show: true,
- textStyle: {
- color: '#fff'
- }
- },
- emphasis: {
- textStyle: {
- color: '#fff'
- }
- }
- },
- // itemStyle: {
- // normal: {
- // borderColor: '#389BB7',
- // areaColor: '#fff',
- // },
- // emphasis: {
- // areaColor: '#389BB7',
- // borderWidth: 0
- // }
- // },
- itemStyle: {
- normal: {
- borderColor: 'rgba(147, 235, 248, 1)',
- borderWidth: 1,
- areaColor: {
- type: 'radial',
- x: 0.5,
- y: 0.5,
- r: 0.8,
- colorStops: [{
- offset: 0,
- color: 'rgba(175,238,238, 0)' // 0% 处的颜色
- }, {
- offset: 1,
- color: 'rgba(47,79,79, .1)' // 100% 处的颜色
- }],
- globalCoord: false // 缺省为 false
- },
- shadowColor: 'rgba(128, 217, 248, 1)',
- // shadowColor: 'rgba(255, 255, 255, 1)',
- shadowOffsetX: -2,
- shadowOffsetY: 2,
- shadowBlur: 10
- },
- emphasis: {
- areaColor: '#389BB7',
- borderWidth: 0
- }
- },
- animation: false,
- data: [{
- name: '丽水',
-
- }, {
- name: '杭州',
-
- }, {
- name: '温州',
-
- }, {
- name: '宁波',
-
- }, {
- name: '舟山',
- // value: 88 去掉则透明
- }, {
- name: '台州',
-
- }, {
- name: '金华',
-
- }, {
- name: '衢州',
-
- }, {
- name: '绍兴',
-
- }, {
- name: '嘉兴',
-
- }, {
- name: '湖州',
-
- }]
- }]
- });
- }
-
- var currentIdx = 0;
- showProvince();
- // 使用刚指定的配置项和数据显示图表。
- window.addEventListener("resize", function () {
- myChart.resize();
- });
- }
- function echart_8(){
- var myChart = echarts.init(document.getElementById('chart_8'));
- var data = [{
- "name": "FDD-1800小区占比",
- "value": 10
- }, {
- "name": "FDD-900小区占比",
- "value": 10
- }, {
- "name": "A频小区占比",
- "value": 10
- }, {
- "name": "E频小区占比",
- "value": 10
- }, {
- "name": "D频小区占比",
- "value": 20
- }, {
- "name": "F频小区占比",
- "value": 30
- }, ]
- option = {
- color: ['#A0CE3A', '#31C5C0', '#1E9BD1', '#0F347B', '#585247', '#7F6AAD', '#009D85', "rgba(250,250,250,0.3)"],
- // backgroundColor: '#000',
- title: {
- // text: '总数',
- // subtext: 7789,
- // textStyle: {
- // color: '#f2f2f2',
- // fontSize: 16,
- // // align: 'center'
- // },
- // subtextStyle: {
- // fontSize: 30,
- // color: ['#ff9d19']
- // },
- // x: 'center',
- // y: 'center',
- },
- grid: {
- bottom: 150,
- left: 100,
- right: '10%'
- },
- // legend: {
- // orient: 'vertical',
- // top: "middle",
- // right: "1%",
- // textStyle: {
- // color: '#f2f2f2',
- // fontSize: 12,
- // },
- // itemWidth: 15, // 设置宽度
- // itemHeight: 8, // 设置高度
- // icon: 'roundRect',
- // data: data,
- // },
- series: [
- // 主要展示层的
- {
- radius: ['20%', '51%'],
- center: ['45%', '45%'],
- type: 'pie',
- label: {
- normal: {
- show: true,
- formatter: "{b}",
- textStyle: {
- fontSize: 10,
- },
- position: 'outside'
- },
- emphasis: {
- show: true
- }
- },
- labelLine: {
- normal: {
- show: true,
- length: 5,
- length2: 10
- },
- emphasis: {
- show: true
- }
- },
- // name: "民警训练总量",
- data: data,
- },
- // 边框的设置
- {
- radius: ['20%', '26%'],
- center: ['45%', '45%'],
- type: 'pie',
- label: {
- normal: {
- show: false
- },
- emphasis: {
- show: false
- }
- },
- labelLine: {
- normal: {
- show: false
- },
- emphasis: {
- show: false
- }
- },
- animation: false,
- tooltip: {
- show: false
- },
- data: [{
- value: 1,
- itemStyle: {
- color: "rgba(250,250,250,0.3)",
- },
- }],
- }, {
- name: '外边框',
- type: 'pie',
- clockWise: false, //顺时加载
- hoverAnimation: false, //鼠标移入变大
- center: ['45%', '45%'],
- radius: ['55%', '55%'],
- label: {
- normal: {
- show: false
- }
- },
- data: [{
- value: 9,
- name: '',
- itemStyle: {
- normal: {
- borderWidth: 2,
- borderColor: '#0b5263'
- }
- }
- }]
- },
- ]
- };// 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- }
- // function echart_91() {
-
- // var myChart = echarts.init(document.getElementById('chart_91'));
-
- // var option = {
- // title: {
- // text: '4G覆盖能力',
- // textStyle:{
- // color:'#fff', //颜色
- // fontStyle:'normal', //风格
- // fontWeight:'normal', //粗细
- // // fontFamily:'Microsoft yahei', //字体
- // fontSize:14, //大小
- // align:'center' //水平对齐
- // },left:'center'
- // },
- // color:['#ef5f2b','#4a6ac4'],
- // tooltip: {},
- // legend: {
- // data:['杭州','全省'],
- // textStyle:{
- // color:"#fff",
- // fontSize: 10
- // },
- // icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
- // itemWidth: 8, // 设置宽度
- // itemHeight: 8, // 设置高度
- // itemGap: 10,// 设置间距
- // padding: [40, 10, 4, 20] // [5, 10, 15, 20]
- // },
- // dataset: {
- // source: [
- // ['x','MR覆盖率','4G驻留比','VO-LTE驻留比'],
- // ['杭州', 98, 100, 98],
- // ['全省', 98, 100, 98]
- // ]
- // },
- // xAxis: [
- // {
-
- // type: 'category', gridIndex: 0,
- // //设置坐标轴字体颜色和宽度
- // axisLine: {
- // lineStyle: {
- // color: "#fff",
- // // width: 20,
- // }
- // },
- // axisLabel: { //x轴文字样式
- // textStyle: {
- // fontSize: 10
- // }
- // },
- // }
- // ],
- // yAxis: [
- // {
- // gridIndex: 0,
- // //设置坐标轴字体颜色和宽度
- // axisLine: {
- // lineStyle: {
- // color: "#fff",
- // }
- // },
- // axisLabel: { //x轴文字样式
- // textStyle: {
- // fontSize: 10
- // }
- // },
- // }
- // ],
- // grid: [
- // {
- // top: '60',
- // right: '5',
- // bottom:'20'
- // }
- // ],
- // series: [
- // // These series are in the first grid.
- // {type: 'bar', seriesLayoutBy: 'row', barWidth:20, barGap:'10%',},
- // {type: 'bar', seriesLayoutBy: 'row', barWidth:20, barGap:'10%',},
- // // These series are in the second grid.
- // ]
-
- // };
- // // 使用刚指定的配置项和数据显示图表。
- // myChart.setOption(option);
- // // window.addEventListener("resize", function () {
- // // myChart.resize();
- // // })
- // }
- // function echart_92() {
-
- // var myChart = echarts.init(document.getElementById('chart_92'));
-
- // var option = {
- // title: {
- // text: '业务承载',
- // textStyle:{
- // color:'#fff', //颜色
- // fontStyle:'normal', //风格
- // fontWeight:'normal', //粗细
- // // fontFamily:'Microsoft yahei', //字体
- // fontSize:14, //大小
- // align:'center' //水平对齐
- // },left:'center'
- // },
- // color:['#ef5f2b','#4a6ac4'],
- // tooltip: {},
- // legend: {
- // data:['业务量','业务占比'],
- // textStyle:{
- // color:"#fff",
- // fontSize: 10
- // },
- // icon: "circle", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
- // itemWidth: 8, // 设置宽度
- // itemHeight: 8, // 设置高度
- // itemGap: 10,// 设置间距
- // padding: [40, 10, 4, 20] // [5, 10, 15, 20]
- // },
- // dataset: {
- // source: [
- // ['x','VOLTE话务量(万ERL)','LTE流量TB'],
- // ['业务量', 310, 750],
- // ['业务占比', 10, 10]
- // ]
- // },
- // xAxis: [
- // {
-
- // type: 'category', gridIndex: 0,
- // //设置坐标轴字体颜色和宽度
- // axisLine: {
- // lineStyle: {
- // color: "#fff",
- // // width: 20,
- // }
- // },
- // axisLabel: { //x轴文字样式
- // textStyle: {
- // fontSize: 10
- // }
- // },
- // }
- // ],
- // yAxis: [
- // {
- // gridIndex: 0,
- // //设置坐标轴字体颜色和宽度
- // axisLine: {
- // lineStyle: {
- // color: "#fff",
- // }
- // },
- // axisLabel: { //x轴文字样式
- // textStyle: {
- // fontSize: 10
- // }
- // },
- // }
- // ],
- // grid: [
- // {
- // top: '60',
- // right: '5',
- // bottom:'20'
- // }
- // ],
- // series: [
- // // These series are in the first grid.
- // {type: 'bar', seriesLayoutBy: 'row', barWidth:30, barGap:'10%',},
- // {type: 'bar', seriesLayoutBy: 'row', barWidth:30, barGap:'10%',},
- // // These series are in the second grid.
- // ]
-
- // };
- // // 使用刚指定的配置项和数据显示图表。
- // myChart.setOption(option);
- // // window.addEventListener("resize", function () {
- // // myChart.resize();
- // // })
- // }
- //
-
- //点击跳转
- // $('#chart_map').click(function(){
- // window.location.href = './page/index.html';
- // });
- // $('.t_btn2').click(function(){
- // window.location.href = "./page/index.html?id=2";
- // });
- // $('.t_btn3').click(function(){
- // window.location.href = "./page/index.html?id=3";
- // });
- // $('.t_btn4').click(function(){
- // window.location.href = "./page/index.html?id=4";
- // });
- // $('.t_btn5').click(function(){
- // window.location.href = "./page/index.html?id=5";
- // });
- // $('.t_btn6').click(function(){
- // window.location.href = "./page/index.html?id=6";
- // });
- // $('.t_btn7').click(function(){
- // window.location.href = "./page/index.html?id=7";
- // });
- // $('.t_btn8').click(function(){
- // window.location.href = "./page/index.html?id=8";
- // });
- // $('.t_btn9').click(function(){
- // window.location.href = "./page/index.html?id=9";
- // });
- });
|