| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879 |
-
- /****/
- $(document).ready(function(){
- var whei=$(window).width()
- $("html").css({fontSize:whei/20})
- $(window).resize(function(){
- var whei=$(window).width()
- $("html").css({fontSize:whei/20})
- });
- });
- $(window).load(function(){$(".loading").fadeOut()})
- $(function () {
- echarts_1()
- echarts_2()
- echarts_3()
- pe04()
- pe01()
- pe02()
- pe03()
- function echarts_4() {
- var myChart = echarts.init(document.getElementById('echarts4'));
- var data = [{
- "name": "邮件总量",
- "value": 20000
- }, {
- "name": "公文交换",
- "value": 18170
- }, {
- "name": "内部流转",
- "value": 19870
- } ]
-
-
- option = {
-
- color: ['#A0CE3A', '#31C5C0', '#1E9BD1', '#0F347B', '#585247', '#7F6AAD', '#009D85', "rgba(250,250,250,0.3)"],
- grid: {
- bottom: 0,
- left: 0,
- right: '0'
- },
- series: [
- // 主要展示层的
- {
- radius: ['30%', '50%'],
- center: ['50%', '50%'],
- type: 'pie',
- label: {
- normal: {
- show: true,
- formatter: ['{b|{b}}','{c|{c}次}', '{d|同比:{d}%}'].join('\n'),
- rich: {
- c: {
- color: 'rgb(241,246,104)',
- fontSize: 20,
- fontWeight:'bold',
- lineHeight: 25
- },
- b: {
- color: 'rgb(98,137,169)',
- fontSize: 15,
- height: 40
- },
- },
-
- position: 'outside'
- },
- emphasis: {
- show: true
- }
- },
- labelLine: {
- normal: {
- show: true,
- length: 15,
- length2: 50
- },
- emphasis: {
- show: true
- }
- },
- name: "民警训练总量",
- data: data,
-
- },
- // 边框的设置
- {
- radius: ['30%', '35%'],
- center: ['50%', '50%'],
- 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: ['50%', '50%'],
- radius: ['60%', '61%'],
- label: {
- normal: {
- show: false
- }
- },
- data: [{
- value: 9,
- name: '',
- itemStyle: {
- normal: {
- borderWidth: 2,
- borderColor: '#0c2c69'
- }
- }
- }]
- },
- ]
- };
-
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
-
-
- }
- function echarts_1() {
- var myChart = echarts.init(document.getElementById('echarts1'));
- option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {type: 'shadow'},
- },
- legend: {
- x: 'center',
- y: '0',
- icon: 'circle',
- itemGap:8,
- textStyle: {color: 'rgba(255,255,255,.5)'},
- itemWidth: 10,
- itemHeight: 10,
- },
- grid: {
- left: '0',
- top: '30',
- right: '15',
- bottom: '0',
- containLabel: true
- },
- xAxis: {
- type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- axisLine: {show:false},
-
- axisLabel: {
- textStyle: {
- color:'rgba(255,255,255,.6)',
- fontSize:14
- }
- },
- },
- yAxis: {
- type: 'value',
- splitNumber:4,
- axisLine: { show: false },
- axisTick: {show: false},
- splitLine: {
- show: true,
- lineStyle: {
- color: 'rgba(255,255,255,0.05)'
- }
- },
- axisLabel: {
- textStyle: {
- color:'rgba(255,255,255,.6)',
- fontSize:14
- },
- },
- },
- series: [ {
- name: '字段1',
- type: 'bar',
- barWidth: '15%',
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#8bd46e'
- }, {
- offset: 1,
- color: '#03b48e'
- }]),
- barBorderRadius: 11,
- }
-
- },
- data: [123,154, 234, 321,120,390, 634,123,154, 234, 321, 108]
- },
- {
- name: '字段2',
- type: 'bar',
- barWidth: '15%',
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#3893e5'
- }, {
- offset: 1,
- color: '#248ff7'
- }]),
- barBorderRadius: 11,
- }
- },
- data: [63,194, 234, 321,278,110, 534,63,194, 234, 321,278]
- },
- {
- name: '字段3',
- type: 'bar',
- barWidth: '15%',
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#43cadd'
- }, {
- offset: 1,
- color: '#0097c9'
- }]),
- barBorderRadius: 11,
- }
- },
- data: [23,354, 334, 221,178,190, 234,354, 334, 221,178,190]
- }
- ]
- };
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
-
- }
- function echarts_2() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('echarts2'));
- option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- lineStyle: {
- color: '#dddc6b'
- }
- }
- },
- grid: {
- left: '0',
- top: '30',
- right: '20',
- bottom: '-10',
- containLabel: true
- },legend: {
- data: ['字段1', '字段2'],
- right: 'center',
- top:0,
- textStyle: {
- color: "#fff"
- },
- itemWidth: 12,
- itemHeight: 10,
- // itemGap: 35
- },
- xAxis: [{
- type: 'category',
- boundaryGap: false,
- axisLabel: {
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize:14,
- },
- },
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)'
- }
- },
- data: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00']
- }, {
- axisPointer: {show: false},
- axisLine: { show: false},
- position: 'bottom',
- offset: 20,
-
- }],
- yAxis: [{
- type: 'value',
- axisTick: {show: false},
- // splitNumber: 6,
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)'
- }
- },
- axisLabel: {
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize:14,
- },
- },
- splitLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)'
- }
- }
- }],
- series: [
- {
- name: '字段1',
- type: 'line',
- smooth: true,
- symbol: 'circle',
- symbolSize: 5,
- showSymbol: false,
- lineStyle: {
-
- normal: {
- color: 'rgba(228, 228, 126, 1)',
- width: 2
- }
- },
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: 'rgba(228, 228, 126, .8)'
- }, {
- offset: 0.8,
- color: 'rgba(228, 228, 126, 0.1)'
- }], false),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- }
- },
- itemStyle: {
- normal: {
- color: '#dddc6b',
- borderColor: 'rgba(221, 220, 107, .1)',
- borderWidth: 12
- }
- },
- data: [600, 200, 600, 200, 400, 200, 400, 300, 400, 300, 400, 300, 200, 400, 200 ]
- }, {
- name: '字段2',
- type: 'line',
- smooth: true,
- symbol: 'circle',
- symbolSize: 5,
- showSymbol: false,
- lineStyle: {
-
- normal: {
- color: 'rgba(255, 128, 128, 1)',
- width: 2
- }
- },
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: 'rgba(255, 128, 128,.8)'
- }, {
- offset: 0.8,
- color: 'rgba(255, 128, 128, .1)'
- }], false),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- }
- },
- itemStyle: {
- normal: {
- color: '#dddc6b',
- borderColor: 'rgba(221, 220, 107, .1)',
- borderWidth: 12
- }
- },
- data: [300, 100, 300, 400, 300, 400, 300, 600, 200, 400, 200, 400, 100, 300, 400]
- },
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function echarts_3() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('echarts3'));
- option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- lineStyle: {
- color: '#dddc6b'
- }
- }
- },
- grid: {
- left: '0',
- top: '30',
- right: '20',
- bottom: '-10',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- boundaryGap: false,
- axisLabel: {
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize:14,
- },
- },
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)'
- }
- },
- data: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00']
- }, {
- axisPointer: {show: false},
- axisLine: { show: false},
- position: 'bottom',
- offset: 20,
-
- }],
- yAxis: [{
- type: 'value',
- axisTick: {show: false},
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)'
- }
- },
- axisLabel: {
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize:14,
- },
- },
- splitLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.1)',
- }
- }
- }],
- series: [
- {
- name: '标题名称',
- type: 'line',
- smooth: true,
- symbol: 'circle',
- symbolSize: 10,
- showSymbol: true,
- lineStyle: {
-
- normal: {
- color: 'rgba(228, 228, 126, 1)',
- width: 2
- }
- },
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: 'rgba(228, 228, 126, .8)'
- }, {
- offset: 0.8,
- color: 'rgba(228, 228, 126, 0.1)'
- }], false),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- }
- },
- itemStyle: {
- normal: {
- color: '#dddc6b',
- borderColor: 'rgba(221, 220, 107, .1)',
- borderWidth: 12
- }
- },
- data: [600, 200, 600, 200, 400, 200, 400, 300, 400, 300, 400, 300, 200, 400, 200 ]
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function pe01() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('pe01'));
- var txt=80
- option = {
- title: {
- text: txt+'%',
- x: 'center',
- y: 'center',
- textStyle: {
- fontWeight: 'normal',
- color: '#fff',
- fontSize: '18'
- }
- },
- color:'#49bcf7',
-
- series: [{
- name: 'Line 1',
- type: 'pie',
- clockWise: true,
- radius: ['65%', '80%'],
- itemStyle: {
- normal: {
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- },
- hoverAnimation: false,
- data: [{
- value: txt,
- name: '已使用',
- itemStyle: {
- normal: {
- color:'#eaff00',
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- }
- }, {
- name: '未使用',
- value: 100-txt
- }]
- }]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function pe02() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('pe02'));
- var txt=73
- option = {
- title: {
- text: txt+'%',
- x: 'center',
- y: 'center',
- textStyle: {
- fontWeight: 'normal',
- color: '#fff',
- fontSize: '18'
- }
- },
- color:'#49bcf7',
-
- series: [{
- name: 'Line 1',
- type: 'pie',
- clockWise: true,
- radius: ['65%', '80%'],
- itemStyle: {
- normal: {
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- },
- hoverAnimation: false,
- data: [{
- value: txt,
- name: '已使用',
- itemStyle: {
- normal: {
- color:'#ea4d4d',
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- }
- }, {
- name: '未使用',
- value: 100-txt
- }]
- }]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function pe03() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('pe03'));
- var txt=30
- option = {
- title: {
- text: txt+'%',
- x: 'center',
- y: 'center',
- textStyle: {
- fontWeight: 'normal',
- color: '#fff',
- fontSize: '18'
- }
- },
- color:'#49bcf7',
-
- series: [{
- name: 'Line 1',
- type: 'pie',
- clockWise: true,
- radius: ['65%', '80%'],
- itemStyle: {
- normal: {
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- },
- hoverAnimation: false,
- data: [{
- value: txt,
- name: '已使用',
- itemStyle: {
- normal: {
- color:'#395ee6',
- label: {
- show: false
- },
- labelLine: {
- show: false
- }
- }
- }
- }, {
- name: '未使用',
- value: 100-txt
- }
- ]
- }]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- function pe04() {
- // 基于准备好的dom,初始化echarts实例
- var myChart = echarts.init(document.getElementById('lastecharts'));
- option = {
-
- tooltip: {
- trigger: 'axis'
- },
- radar: [{
- indicator: [{
- text: '盈利能力',
- max: 100
- }, {
- text: '发展水平',
- max: 100
- }, {
- text: '融资能力',
- max: 100
- }, {
- text: '技术能力',
- max: 100
- }, {
- text: '企业规模',
- max: 100
- }],
- textStyle: {
- color: 'red'
- },
- center: ['50%', '50%'],
- radius: '70%',
- startAngle: 90,
- splitNumber: 4,
- shape: 'circle',
-
- name: {
- padding:-5,
- formatter: '{value}',
- textStyle: {
- fontSize:14,
- color: 'rgba(255,255,255,.6)'
- }
- },
- splitArea: {
- areaStyle: {
- color: 'rgba(255,255,255,.05)'
- }
- },
- axisLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.05)'
- }
- },
- splitLine: {
- lineStyle: {
- color: 'rgba(255,255,255,.05)'
- }
- }
- }, ],
- series: [{
- name: '雷达图',
- type: 'radar',
- tooltip: {
- trigger: 'item'
- },
- data: [{
- name: '园区平均值',
- value: [90, 80, 20, 10, 30],
- lineStyle: {
- normal: {
- color:'#03b48e',
- width:2,
- }
- },
- areaStyle: {
- normal: {
- color: '#03b48e',
- opacity:.4
- }
- },
- symbolSize: 0,
-
- }, {
- name: '当前园区',
- value: [30, 20, 75, 80, 70],
- symbolSize: 0,
- lineStyle: {
- normal: {
- color:'#3893e5',
- width:2,
- }
- },
- areaStyle: {
- normal: {
- color: 'rgba(19, 173, 255, 0.5)'
- }
- }
- }]
- }, ]
- };
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });
- }
- })
-
-
-
-
|