123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764 |
- $(window).load(function(){$(".loading").fadeOut()})
- $(function () {
- echarts_1();
- echarts_4()
- echarts_31()
- function echarts_1() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('echart1'));
- var data = [{
- title: '**省'
- },
- ['本周'],
- [{
- name: '文本1',
- max: 150
- }, {
- name: '文本2',
- max: 150
- }, {
- name: '文本3',
- max: 150
- }, {
- name: '文本4',
- max: 150
- }, {
- name: '文本5',
- max: 150
- }],
- [43, 100, 28, 3, 150],
- ]
- option = {
- color: ['#9DD060', '#35C96E', '#4DCEF8'],
- tooltip: {},
-
- radar: {
- center: ['50%', '50%'],
- radius: ["25%", "70%"],
-
- name: {
- textStyle: {
- color: '#72ACD1'
- }
- },
- splitLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.0',
- width: 2
- }
- },
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,0.2)',
- width: 1,
- type: 'dotted'
- },
- },
- splitArea: {
- areaStyle: {
- color: ['rgba(255,255,255,.1)', 'rgba(255,255,255,0)']
- }
- },
- indicator: data[2]
- },
- series: [{
- name: '',
- type: 'radar',
- data: [{
- areaStyle: {
- normal: {
- opacity: 0.3,
- }
- },
- value: data[3],
- name: data[1][0]
- },
- {
- areaStyle: {
- normal: {
- opacity: 0.3,
- }
- },
- value: data[4],
- name: data[1][1]
- },
- {
- areaStyle: {
- normal: {
- opacity: 0.3,
- }
- },
- value: data[5],
- name: data[1][2]
- }
- ]
- }]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function echarts_4() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('echart4'));
- var myChart2 = echarts.init(document.getElementById('echart3'));
- option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {
- data: ['文本1', '文本2'],
- top:'2%',
- textStyle: {
- color: "rgba(255,255,255,.5)",
- fontSize: '12',
- },
- itemWidth: 12,
- itemHeight: 12,
- itemGap: 35
- },
- grid: {
- left: '0%',
- top:'40px',
- right: '0%',
- bottom: '0%',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: ['1', '2', '3', '4', '5', '6', '7', '8', '9'],
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- width: 1,
- type: "solid"
- },
- },
-
- axisTick: {
- show: false,
- },
- axisLabel: {
- interval: 0,
- // rotate:50,
- show: true,
- splitNumber: 15,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '14',
- },
- },
- }],
- yAxis: [{
- type: 'value',
- axisLabel: {
- //formatter: '{value} %'
- show:true,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '14',
- },
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1 )",
- width: 1,
- type: "solid"
- },
- },
- splitLine: {
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- }
- }
- }],
- series: [{
- name: '文本1',
- type: 'bar',
- data: [2, 3, 3, 9, 15, 12, 6, 4, 6],
- barWidth:'20%', //柱子宽度
- // barGap: 1, //柱子之间间距
- itemStyle: {
- normal: {
- color:'#2f89cf',
- opacity: 1,
- barBorderRadius: 5,
- }
- }
- }, {
- name: '文本2',
- type: 'bar',
- data: [1, 4, 5, 11, 12, 9, 5, 6, 5],
- barWidth:'20%',
- // barGap: 1,
- itemStyle: {
- normal: {
- color:'#62c98d',
- opacity: 1,
- barBorderRadius: 5,
- }
- }
- },
- ]
- };
- option2 = {
- // backgroundColor: '#00265f',
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {
- data: ['2017年', '2018年'],
- top:'5%',
- textStyle: {
- color: "#fff",
- fontSize: '12',
- },
-
- itemGap: 35
- },
- grid: {
- left: '0%',
- top:'40px',
- right: '0%',
- bottom: '0',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月'],
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- width: 1,
- type: "solid"
- },
- },
- axisTick: {
- show: false,
- },
- axisLabel: {
- interval: 0,
- // rotate:50,
- show: true,
- splitNumber: 5,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '12',
- },
- },
- }],
- yAxis: [{
- type: 'value',
- axisLabel: {
- //formatter: '{value} %'
- show:true,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '12',
- },
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1 )",
- width: 1,
- type: "solid"
- },
- },
- splitLine: {
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- }
- }
- }],
- series: [{
- name: '2017年',
- type: 'line',
- smooth: true,
- data: [2, 6, 3, 8, 5, 8],
- itemStyle: {
- normal: {
- color:'#2f89cf',
- opacity: 1,
-
- barBorderRadius: 5,
- }
- }
- }, {
- name: '2018年',
- type: 'line',
- smooth: true,
- data: [5, 2, 6, 4, 5, 12],
- barWidth:'15',
- // barGap: 1,
- itemStyle: {
- normal: {
- color:'#62c98d',
- opacity: 1,
- barBorderRadius: 5,
- }
- }
- },
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option2);
- myChart2.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function echarts_31() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('fb01'));
- var myChart2 = echarts.init(document.getElementById('fb02'));
- var myChart3 = echarts.init(document.getElementById('fb03'));
- var myChart4 = echarts.init(document.getElementById('fb04'));
- var myChart5 = echarts.init(document.getElementById('myd1'));
- var myChart7 = echarts.init(document.getElementById('sysx'));
- option = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)",
- position:function(p){ //其中p为当前鼠标的位置
- return [p[0] + 10, p[1] - 10];
- }
- },
- legend: {
- orient: 'vertical',
- top:'25%',
- right:0,
- itemWidth: 10,
- itemHeight: 10,
- data:['20-29岁','30-39岁','40-49岁','50岁以上'],
- textStyle: {
- color: 'rgba(255,255,255,.5)',
- fontSize:'12',
- }
- },
- series: [
- {
- name:'年龄分布',
- type:'pie',
- center: ['35%', '50%'],
- radius: ['40%', '50%'],
- color: ['#62c98d', '#2f89cf', '#4cb9cf', '#e0c828','#e58c00','#eb295b'],
- label: {show:false},
- labelLine: {show:false},
- data:[
-
- {value:4, name:'20-29岁'},
- {value:2, name:'30-39岁'},
- {value:2, name:'40-49岁'},
- {value:1, name:'50岁以上'},
- ]
- }
- ]
- };
- option2 = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)",
- position:function(p){ //其中p为当前鼠标的位置
- return [p[0] + 10, p[1] - 10];
- }
- },
- legend: {
- orient: 'vertical',
- top:'25%',
- right:'8%',
- itemWidth: 10,
- itemHeight: 10,
- data:['博士','硕士','本科','专科'],
- textStyle: {
- color: 'rgba(255,255,255,.5)',
- fontSize:'12',
- }
- },
- series: [
- {
- name:'学历构成',
- type:'pie',
- center: ['40%', '50%'],
- radius: ['40%', '50%'],
- color: ['#62c98d', '#2f89cf', '#4cb9cf', '#e0c828','#e58c00','#eb295b'],
- label: {show:false},
- labelLine: {show:false},
- data:[
- {value:10, name:'博士'},
- {value:20, name:'硕士'},
- {value:30, name:'本科'},
- {value:40, name:'专科'},
-
- ]
- }
- ]
- };
- option3 = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)",
- position:function(p){ //其中p为当前鼠标的位置
- return [p[0] + 10, p[1] - 10];
- }
- },
- legend: {
- orient: 'vertical',
- top:'center',
- right:0,
- itemWidth: 10,
- itemHeight: 10,
- data:['数据分门别类','数据关系部门','今日数据交易'],
- textStyle: {
- color: 'rgba(255,255,255,.5)',
- fontSize:'12',
- }
- },
- series: [
- {
- name:'数据',
- type:'pie',
- center: ['35%', '50%'],
- radius: ['40%', '50%'],
- color: ['#62c98d', '#2f89cf', '#4cb9cf', '#e0c828','#e58c00','#eb295b'],
- label: {show:false},
- labelLine: {show:false},
- data:[
-
- {value:4, name:'数据分门别类'},
- {value:2, name:'数据关系部门'},
- {value:2, name:'今日数据交易'},
- ]
- }
- ]
- };
- option4 = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)",
- position:function(p){ //其中p为当前鼠标的位置
- return [p[0] + 10, p[1] - 10];
- }
- },
- legend: {
- orient: 'vertical',
- top:'center',
- right:'8%',
- itemWidth: 10,
- itemHeight: 10,
- data:['零销类','服务类','销售类','软件类','硬件类','其它类'],
- textStyle: {
- color: 'rgba(255,255,255,.5)',
- fontSize:'12',
- }
- },
- series: [
- {
- name:'业务分类',
- type:'pie',
- center: ['40%', '50%'],
- radius: ['40%', '50%'],
- color: ['#62c98d', '#2f89cf', '#4cb9cf', '#e0c828','#e58c00','#eb295b'],
- label: {show:false},
- labelLine: {show:false},
- data:[
- {value:10, name:'零销类'},
- {value:20, name:'服务类'},
- {value:30, name:'销售类'},
- {value:40, name:'软件类'},
- {value:50, name:'硬件类'},
- {value:60, name:'其它类'},
- ]
- }
- ]
- };
- option5 = {
- grid: {
- left: '0',
- right: '0',
- top: '10%',
- bottom: '24%',
- //containLabel: true
- },
- legend: {
- data: ['等待', '已办人数', '已办业务'],
- bottom:0,
- itemWidth: 10,
- itemHeight: 10,
- textStyle: {
- color: "#fff",
- fontSize: '10',
- },
-
- itemGap: 5
- },
- tooltip: {
- show: "true",
- trigger: 'item'
- },
- yAxis: {
- type: 'value',
- show: false,
- },
- xAxis: [{
- type: 'category',
- axisTick: {
- show: false
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: '#363e83',
- }
- },
- axisLabel: {
- show: false,
- // inside: true,
- textStyle: {
- color: "rgba(255,255,255,1)",
- fontWeight: 'normal',
- fontSize: '12',
- },
- // formatter:function(val){
- // return val.split("").join("\n")
- // },
- },
- data: ['业务办量统计']
- }
- ],
- series: [
- {
- name: '等待',
- type: 'bar',
- barWidth: '20',
-
- itemStyle: {
- normal: {
- show: true,
- color:'#20aa92',
- barBorderRadius: 50,
- borderWidth: 0,
- }
- },
- zlevel: 2,
- barGap: '100%',
- data: [20],
- label: {
- formatter: "{c}人",
- show: true,
- position: 'top',
- textStyle: {
- fontSize:12,
- color: 'rgba(255,255,255,.6)',
- }
- },
- },
- {
- name: '已办人数',
- type: 'bar',
- itemStyle: {
- normal: {
- show: true,
- color:'#f4664e',
- barBorderRadius: 50,
- borderWidth: 0,
- }
- },
- zlevel: 2,
- barWidth: '20',
- data: [40],
- label: {
- formatter: "{c}人",
- show: true,
- position: 'top',
- textStyle: {
- fontSize:12,
- color: 'rgba(255,255,255,.6)',
- }
- },
- },
- {
- name: '已办业务',
- type: 'bar',
- itemStyle: {
- normal: {
- show: true,
- color:'#0c93dc',
- barBorderRadius: 50,
- borderWidth: 0,
- }
- },
- zlevel: 2,
- barWidth: '20',
- data: [127],
- label: {
- formatter: "{c}份",
- show: true,
- position: 'top',
- textStyle: {
- fontSize:12,
- color: 'rgba(255,255,255,.6)',
- }
- },
- },
- ]
- };
-
- option7 = {
- // backgroundColor: '#00265f',
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- grid: {
- left: '0%',
- top:'10px',
- right: '0%',
- bottom: '0',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月'],
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- width: 1,
- type: "solid"
- },
- },
- axisTick: {
- show: false,
- },
- axisLabel: {
- interval: 0,
- // rotate:50,
- show: true,
- splitNumber: 5,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '12',
- },
- },
- }],
- yAxis: [{
- type: 'value',
- axisLabel: {
- //formatter: '{value} %'
- show:true,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '12',
- },
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1 )",
- width: 1,
- type: "solid"
- },
- },
- splitLine: {
- show: false,
- lineStyle: {
- color: "rgba(255,255,255,.1)",
- }
- }
- }],
- series: [{
- name: '2017年',
- type: 'line',
- //smooth: true,
- data: [2, 6, 3, 8, 5, 8],
- itemStyle: {
- normal: {
- color:'#2f89cf',
- opacity: 1,
-
- barBorderRadius: 5,
- }
- }
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- myChart2.setOption(option2);
- myChart3.setOption(option3);
- myChart4.setOption(option4);
- myChart5.setOption(option5);
-
- myChart7.setOption(option7);
- window.addEventListener("resize",function(){
- myChart.resize();
- myChart7.resize();
- myChart2.resize();
- myChart3.resize();
- myChart4.resize();
- myChart5.resize();
-
- });
- }
- })
-
-
-
-
|