今日分享开源酷炫大数据可视化大屏html模板

前言

虽然目前已有很多开源在线制作可视化大屏项目
但有时候为了项目赶工期上线,直接利用现成的可视化大屏html模板,配合开源低代码平台Microi吾码的接口引擎,半小时以内就能做一个成品

先上图

在这里插入图片描述

代码也非常简单,利用Microi吾码接口引擎,分分钟套好

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>数据中心可视化平台模板</title><link rel="stylesheet" href="css/index.css"><link rel="stylesheet" href="css/reset.css">
</head>
<body>
<div id="particles-js" class="main"><div class="main_con"><div class="main_top"><div class="main_top_left"><div class="main_top_left_top"><img src="./images/main_top_left.png"/><div class="main_top_left_top_title">公开数据展示</div><div class="main_top_left_top_con"><div class="main_top_left_top_con_list"><span class="main_top_left_c_l_n main_top_left_c_l_n1">0</span><p>党务公开</p></div><div class="main_top_left_top_con_list"><span class="main_top_left_c_l_n main_top_left_c_l_n2">0</span><p>政务公开</p></div><div class="main_top_left_top_con_list"><span class="main_top_left_c_l_n main_top_left_c_l_n3">0</span><p>财务公开</p></div><div class="main_top_left_top_con_left"><div class="main_top_left_t_c_l_left"><span class="main_top_left_c_l_n main_top_left_c_l_n4">0</span><p>村务公开</p></div><div class="main_top_left_t_c_l_right"><span class="main_top_left_c_l_n main_top_left_c_l_n5">0</span><p>居务公开</p></div>   </div><div class="main_top_left_top_con_right main_top_left_top_con_right2"><div class="main_top_left_t_c_r_left"><span class="main_top_left_c_l_n">0</span><p>占位公开</p></div><div class="main_top_left_t_c_r_right"><span class="main_top_left_c_l_n">0</span><p>占位公开</p></div> </div></div></div><div class="main_top_left_top main_top_left_bottom"><img src="./images/main_top_left.png"/><div class="main_top_left_top_title">信息员添加数据展示</div><div id="baseId" class="main_top_left_top_con"></div></div></div><div class="main_top_middle"><div class="main_top_middle_top_title"><img class="title_bg" src="./images/title_bg.png">大数据中心可视化平台模板<a class="title_web" href="" target="blank">管理系统</a><a class="title_admin" href="" target="blank">web网页</a></div><div class="main_top_middle_num_title">公开数量</div><div class="main_top_middle_num"><!-- <div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list6">0</p></div> --><div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list5">0</p></div><div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list4">0</p></div><div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list3">0</p></div><div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list2">0</p></div><div class="main_top_middle_num_list"><img src="./images/center_num.png"><p class="main_top_middle_num_list1">0</p></div></div><div class="main_top_middle_bottom"><div class="main_top_middle_bottom_echarts"><img src="./images/main_top_bottom.png"><div class="main_top_echarts_con"><div class="main_top_echarts_con_title">公开数量占比</div><div id="threeTasksId" class="main_top_echarts_pie"></div></div></div><div class="main_top_middle_bottom_echarts main_top_middle_bottom_echarts_right"><img src="./images/main_top_bottom.png"><div class="main_top_echarts_con"><div class="main_top_echarts_con_title">公开数量占比</div><div id="publicityId" class="main_top_echarts_pie"></div></div></div></div></div><div class="main_top_left main_top_right"><div class="main_top_left_top"><img src="./images/main_top_left.png"/><div class="main_top_left_top_title">数据展示</div><div class="main_top_left_top_con"><div class="main_top_left_top_con_left"><span class="daysData">0</span><p>今日公开</p></div><div class="main_top_left_top_con_right"><span class="weekData">0</span><p>本周公开</p></div><div class="main_top_left_top_con_list"><span class="monthData">0</span><p>本月公开</p></div><div class="main_top_left_top_con_list"><span class="someThing">0</span><p>办事指南</p></div><div class="main_top_left_top_con_list"><span class="policyData">0</span><p>政策解读</p></div></div></div><div class="main_top_left_top main_top_left_bottom"><img src="./images/main_top_left.png"/><div class="main_top_left_top_title">数量类型占比</div><div id="questionId" class="main_top_left_top_con"></div></div></div></div><div class="main_middle"><div class="main_middle_list"><img src="./images/main_middle.png"><div class="main_list_title main_list_title1">X镇</div><span class="main_list_title_num main_list_title_num1">0</span></div><div class="main_middle_list"><img src="./images/main_middle.png"><div class="main_list_title main_list_title2"></div><span class="main_list_title_num main_list_title_num2">0</span></div><div class="main_middle_list"><img src="./images/main_middle.png"><div class="main_list_title main_list_title3"></div><span class="main_list_title_num main_list_title_num3">0</span></div><div class="main_middle_list"><img src="./images/main_middle.png"><div class="main_list_title main_list_title4"></div><span class="main_list_title_num main_list_title_num4">0</span></div><div class="main_middle_list"><img src="./images/main_middle.png"><div class="main_list_title main_list_title5"></div><span class="main_list_title_num main_list_title_num5">0</span></div></div><div class="main_bottom"><div class="main_bottom_top"><div class="main_bottom_top_list"><img src="./images/main_bottopm_top1.png"><div class="main_bottom_t_l_title">指南</div><div class="main_bottom_t_l_con"><div class="main_bottom_t_l_main"><ul><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_t_list_title1">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_t_list_time1">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_t_list_title2">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_t_list_time2">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_t_list_title3">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_t_list_time3">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_t_list_title4">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_t_list_time4">2020/08/19</div></div></li></ul></div></div></div><div class="main_bottom_top_list"><img src="./images/main_bottopm_top2.png"><div class="main_bottom_t_l_title">公开占比</div><div id="departmentId" class="main_bottom_t_l_chart"></div></div><div class="main_bottom_top_list"><img src="./images/main_bottopm_top1.png"><div class="main_bottom_t_l_title">政策</div><div class="main_bottom_t_l_con"><div class="main_bottom_t_l_main2"><ul><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_polity_title1">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_polity_time1">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_polity_title2">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_polity_time1">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_polity_title3">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_polity_time1">2020/08/19</div></div></li><li><div class="main_bottom_t_l_main_list"><div class="main_bottom_t_list_title main_bottom_polity_title4">大数据中心可视化平台模板</div><div class="main_bottom_t_list_time main_bottom_polity_time1">2020/08/19</div></div></li></ul></div></div></div></div><div class="main_bottom_bottom"><div class="main_bottom_b_left"><img src="./images/main_bottom_bottom.png"><div class="main_bottom_b_title">主要关注占比</div><div id="coverageId" class="main_bottom_b_con"></div></div><div class="main_bottom_b_middle1"><img src="./images/main_bootm_middle.png"><div class="main_bottom_b_title">关注占比</div><div id="contentId" class="main_bottom_b_con main_bottom_b_con2"></div></div><div class="main_bottom_b_middle2"><img src="./images/main_bootm_middle.png"><div class="main_bottom_b_title">发布量</div><div id="publicNumId" class="main_bottom_b_con main_bottom_b_con2"></div></div><div class="main_bottom_b_right"><img src="./images/main_bottom_bottom.png"><div class="main_bottom_b_title">X公开数量</div><div id="yearsNumId" class="main_bottom_b_con"></div></div></div></div></div>
</div>
</body></html>
<script src="js/jquery.min.js"></script>
<script src="js/echarts.min.js"></script>
<script type="text/javascript" src="js/dataScoll.js"></script>
<script type="text/javascript" src="js/digitalScroll.js"></script>
<script type="text/javascript" src="js/jcarousellite.js"></script>
<script type="text/javascript" src="js/particles.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script>$(function() {function apiFn() {this.hostname = ""}apiFn.prototype = {Init:function() {this.findCount()this.otherDataFn()this.baseInfo()this.questionFn()this.publicityFn()this.threeTasksFn()this.departmentFn()this.guideFn()this.policyFn()this.coverageFn()this.yearsNumFn()this.contentFn()this.publicNumFn()setInterval(function() {numInit()},6000)},findCount:function() {},// 其他数据展示otherDataFn:function() {$(".daysData").addClass("counter-value").text("304")$(".weekData").addClass("counter-value").text("2044")$(".monthData").addClass("counter-value").text("909")$(".someThing").addClass("counter-value").text("980")$(".policyData").addClass("counter-value").text("200")},// 基础信息baseInfo:function() {var baseChart = echarts.init(document.getElementById('baseId'));var charts = [{name: "测试1", num: 200},{name: "测试2", num: 300},{name: "测试3", num: 400},{name: "测试4", num: 500},{name: "测试5", num: 300},]var color = ['rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249', 'rgba(100,255,249']let lineY = []for (var i = 0; i < charts.length; i++) {var x = iif (x > color.length - 1) {x = color.length - 1}var data = {name: charts[i].name,color: color[x] + ')',value: charts[i].num,itemStyle: {normal: {show: true,color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{offset: 0,color: color[x] + ', 0.3)'}, {offset: 1,color: color[x] + ', 1)'}], false),barBorderRadius: 10},emphasis: {shadowBlur: 15,shadowColor: 'rgba(0, 0, 0, 0.1)'}}}lineY.push(data)}var option= {title: {show: false},grid: {// borderWidth: 1,top: '10%',left: '30%',right: '20%',bottom: '3%'},color: color,yAxis: [{type: 'category',inverse: true,axisTick: {show: false},axisLine: {show: false},axisLabel: {show: false,inside: false},data: charts.name}, {type: 'category',inverse: true,axisLine: {show: false},axisTick: {show: false},axisLabel: {show: true,inside: false,textStyle: {color: '#38E1E1',fontSize: '8',},formatter: function (val,index) {return `${charts[index].num}`}},splitArea: {show: false},splitLine: {show: false},data: charts}],xAxis: {// type: 'value',axisTick: {show: false},axisLine: {show: false},splitLine: {show: false},axisLabel: {show: false}},series: [{name: '',type: 'bar',zlevel: 2,barWidth: '5px',data: lineY,animationDuration: 1500,label: {normal: {color: 'white',show: true,position: [-65, -2],textStyle: {fontSize: 8},formatter: function (a, b) {return a.name}}}}],animationEasing: 'cubicOut'}baseChart.setOption(option)setInterval(function() {baseChart.clear()baseChart.setOption(option)},40000)},// 问题反馈类型占比questionFn:function() {var numArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},{name: '测试66', value: 800},]// for(var i = 0; i < data.list.length; i++) {//     numArr.push({name: data.list[i].name,value: data.list[i].num})// }var datas = numArrvar questionChart = echarts.init(document.getElementById('questionId'));var option = {title: {left: 'center'},tooltip: {trigger: 'item',formatter: '{a} <br/>{b} : {c} ({d}%)'},color:['#2E8CFF', '#FD9133','#37D2D4','#19CA88','#858FF8'],legend: {itemWidth: 11,// 标志图形的长度itemHeight: 11,// 标志图形的宽度orient: 'vertical',// left: 'right',top: '15%',x: '50%',data: datas,textStyle: { //图例文字的样式color: '#fff',fontSize: 8},},series: [{name: '问题反馈',type: 'pie',radius: '75%',center: ['20%', '50%'],animationDuration: 2500,data: datas,label: {normal: {position: 'inner',show : false}}}]};questionChart.setOption(option)setInterval(function() {questionChart.clear()questionChart.setOption(option)},8000)},// 党务公开publicityFn:function() {var dataArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},{name: '测试66', value: 800},]// for(var i = 0; i < res.list.length; i++) {//     dataArr.push({name: res.list[i].name, value: res.list[i].num})// }var publicitChart = echarts.init(document.getElementById('publicityId'));var data = dataArrvar option = {color: ['#38EB70', '#F7E16C', '#0EFCFF', '#FD9133', '#4D92F2'],tooltip: {trigger: 'item',formatter: '{a} <br/>{b} : {c} ({d}%)'},legend: {itemWidth: 12,// 标志图形的长度itemHeight: 12,// 标志图形的宽度orient: 'vertical',// left: 'right',top: '5%',bottom: '50%',x: '45%',textStyle: {color: '#fff',fontSize: 8,},data: data,},series: [// 主要展示层的{radius: ['70%', '90%'],center: ['25%', '50%'],type: 'pie',label: {normal: {position: 'inner',show : false}},name: "公开数量",data: data,},// 边框的设置{radius: ['50%', '55%'],center: ['25%', '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)",},}],}]};publicitChart.setOption(option)setInterval(function() {publicitChart.clear()publicitChart.setOption(option)},6000)},// 三务公开数量threeTasksFn:function() {let names = "666666";if(6 - names.length > 0) {for(g = 0; g < 6 - names.length; g++) {$(".main_top_middle_num_list"+(6 - g)).text('0')}}for(var j = 0; j < names.length; j++) {$(".main_top_middle_num_list"+(names.length - j)).text(names.substr(j,1))}var dataArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},{name: '测试66', value: 800},]for(var i = 1; i < dataArr.length; i++) {$(".main_top_left_c_l_n"+i).addClass("counter-value").text(dataArr[i].value)}var threeTasksChart = echarts.init(document.getElementById('threeTasksId'));var data = dataArrvar option = {color: ['#38EB70', '#2E8CFF', '#0EFCFF', '#858FF8', '#FD9133','#F7E270'],tooltip : {trigger: 'item',formatter: "{a} <br/>{b} : {c} ({d}%)"},legend: {itemWidth: 15,// 标志图形的长度itemHeight: 15,// 标志图形的宽度orient: 'vertical',// left: 'right',top: '10%',bottom: '50%',x: '50%',textStyle: {color: '#fff',fontSize: 8,},data: data},series : {name:'三务公开数量',type:'pie',animationDuration: 1500,radius: ['70%', '90%'],center: ['25%', '50%'],roseType : 'radius',label: {normal: {position: 'inner',show : false}},data:data}};threeTasksChart.setOption(option)setInterval(function() {threeTasksChart.clear()threeTasksChart.setOption(option)},4000)},// 各部门苏木镇嘎查村公开占比departmentFn:function() {var dataArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},]// 中间滚动数据展示for(var j = 0; j < dataArr.length; j++) {$(".main_list_title_num"+(j+1)).addClass("counter-value").text(dataArr[j].value)$(".main_list_title"+(j+1)).text(dataArr[j].name)}var departmentChart = echarts.init(document.getElementById('departmentId'));var data = dataArrvar option = {color: ['#FD9133', '#47F6A2', '#37D2D4', '#3493FF'],tooltip : {trigger: 'item',formatter: "{a} <br/>{b} : {c} ({d}%)"},legend: {itemWidth: 15,// 标志图形的长度itemHeight: 15,// 标志图形的宽度orient: 'vertical',// left: 'right',top: '30%',bottom: '50%',x: '5%',textStyle: {color: '#fff',fontSize: 8,},data: data,},series: [{name: '公开占比',type: 'pie',radius: ['50%', '70%'],center: ['78%', '52%'],labelLine: {normal: {length: 12,lineStyle: {type: 'solid',color: '#0EFCFF'}}},label: {normal: {formatter: (params)=>{return params.name},borderWidth: 0,borderRadius: 4,padding: [0,0],height: 20,fontSize: 8,align: 'center',color: '#0EFCFF',}},data: data},{color: '#0EFCFF',type: 'pie',radius: ['55', '56'],center: ['78%', '52%'],data: [100],label: {show: false}},{type: 'pie',radius: ['25', '26'],center: ['78%', '52%'],data: [100],label: {show: false}}]};departmentChart.setOption(option)setInterval(function() {departmentChart.clear()departmentChart.setOption(option)},12000)},// 办事指南guideFn:function() {$(".main_bottom_t_l_main").jCarouselLite({vertical: true,hoverPause:true,visible: 4,auto: 1000,speed: 500});},// 政策解读policyFn:function() {$(".main_bottom_t_l_main2").jCarouselLite({vertical: true,hoverPause:true,visible: 4,auto: 1000,speed: 500});},// 主要关注内容区域占比coverageFn:function() {var resArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},{name: '测试66', value: 800},]var indicatorArr = []var numArr = []for(var i = 0; i < resArr.length; i++) {indicatorArr.push({name: resArr[i].name,max: 900})numArr.push(resArr[i].value)}var data = [{value: numArr,}]var coverageChart = echarts.init(document.getElementById('coverageId'));var option = {legend: {show: true,icon: "circle",bottom: 30,center: 0,itemWidth: 14,itemHeight: 14,itemGap: 21,orient: "horizontal",data: ['a', 'b'],textStyle: {fontSize: '70%',color: '#0EFCFF'},},radar: {// shape: 'circle',radius: '70%',triggerEvent: true,// type: 'default',name: {textStyle: {color: '#39DCF4',fontSize: '10',// borderRadius: 3,padding: [10, 10]}},nameGap: '2',indicator: indicatorArr,splitArea: {areaStyle: {color: 'rgba(255,255,255,0)'}},axisLine: { //指向外圈文本的分隔线样式lineStyle: {color: 'rgba(255,255,255,.2)'}},splitLine: {lineStyle: {width: 1,color: 'rgba(255,255,255,.2)'}},},series: [{name: 'X区域占比',type: 'radar',animationDuration: 2000,areaStyle: {normal: {color: {type: 'linear',opacity: 1,x: 0,y: 0,x2: 0,y2: 1,color: '#2EEFAD'}}},symbolSize: 0,lineStyle: {normal: {// color: 'rgba(252,211,3, 1)',width: 0}},data: data}]};coverageChart.setOption(option)setInterval(function() {coverageChart.clear()coverageChart.setOption(option)},10000)},// 本年公开数量yearsNumFn:function() {var resArr = [{name: '测试11', value: 30},{name: '测试22', value: 50},{name: '测试33', value: 40},{name: '测试44', value: 35},{name: '测试55', value: 36},{name: '测试66', value: 80},]var nameArr = []var caiArr = []var cunArr = []var danArr = []var junArr = []var zhenArr = []for(var i = 0; i < resArr.length; i++) {nameArr.push(resArr[i].name)caiArr.push(resArr[i].value)cunArr.push(resArr[i].value)danArr.push(resArr[i].value)junArr.push(resArr[i].value)zhenArr.push(resArr[i].value)}var yearsNumChart = echarts.init(document.getElementById('yearsNumId'));var spNum = 5,_max=100;var y_data = nameArr.reverse();var _datamax = [100,100,100,100,100,100,100,100,100,100,100,100],_data1 = caiArr.reverse(),_data2 = cunArr.reverse(),_data3 = danArr.reverse();_data4 = junArr.reverse();_data5 = zhenArr.reverse();var fomatter_fn = function(v) {return (v.value / _max * 100).toFixed(0) }var _label = {normal: {show: true,position: 'inside',formatter: fomatter_fn,textStyle: {color: '#fff',fontSize: 8}}};var option = {grid: {containLabel: true,left: 0,top: 0,right: 0,bottom: 0},tooltip: {show: true,backgroundColor: '#fff',borderColor: '#ddd',borderWidth: 1,textStyle: {color: '#3c3c3c',fontSize: 16},extraCssText: 'box-shadow: 0 0 5px rgba(0, 0, 0, 0.1)'},xAxis: {splitNumber: spNum,interval: _max / spNum,max: _max,axisLabel: {show: false,formatter: function(v) {var _v = (v / _max * 100).toFixed(0);return _v == 0 ? _v : _v + '%';}},axisLine: {show: false},axisTick: {show: false},splitLine: {show: false}},yAxis: [{data: y_data,axisLabel: {fontSize: 8,color: 'rgba(255,255,255,.7)'},axisLine: {show: false},axisTick: {show: false},splitLine: {show: false}}, {show: false,data: y_data,axisLine: {show: false}}],series: [{type: 'bar',name: '财务',stack: '2',label: _label,legendHoverLink: false,barWidth: 7,itemStyle: {normal: {color: '#FD9133'},emphasis: {color: '#FD9133'}},data: _data1}, {type: 'bar',name: '村务',stack: '2',legendHoverLink: false,barWidth: 20,label: _label,itemStyle: {normal: {color: '#2E8CFF'},emphasis: {color: '#2E8CFF'}},data: _data2}, {type: 'bar',stack: '2',name: '党务',legendHoverLink: false,barWidth: 20,label: _label,itemStyle: {normal: {color: '#37D2D4'},emphasis: {color: '#37D2D4'}},data: _data3}, {type: 'bar',stack: '2',name: '居务',legendHoverLink: false,barWidth: 20,label: _label,itemStyle: {normal: {color: '#19CA88'},emphasis: {color: '#19CA88'}},data: _data4}, {type: 'bar',stack: '2',name: '政务',legendHoverLink: false,barWidth: 20,label: _label,itemStyle: {normal: {color: '#0EFCFF'},emphasis: {color: '#0EFCFF'}},data: _data5}]};yearsNumChart.setOption(option)setInterval(function() {yearsNumChart.clear()yearsNumChart.setOption(option)},120000)},// 关注内容区域占比contentFn:function() {var resArr = [{name: '测试11', value: 30},{name: '测试22', value: 50},{name: '测试55', value: 33},{name: '测试66', value: 80},]var nameArr = []var caiArr = []var cunArr = []var danArr = []var junArr = []var zhenArr = []for(var i = 0; i < resArr.length; i++) {nameArr.push(resArr[i].name)caiArr.push(resArr[i].value)cunArr.push(resArr[i].value)danArr.push(resArr[i].value)junArr.push(resArr[i].value)zhenArr.push(resArr[i].value)}var contentChart = echarts.init(document.getElementById('contentId'));var option = {tooltip: {trigger: 'axis'},legend: {x: '35%',y: '0%',data: ["财务","村务","党务","居务","政务"],textStyle: {color: "#fff",fontSize: 8},itemWidth: 10,itemHeight: 10,},calculable: true,xAxis: [{type: 'category',data: nameArr,axisLabel: {interval: 0,textStyle: {fontSize: 8,color: 'rgba(255,255,255,.7)',}},"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},}],yAxis: [{type: 'value',scale: true,name: '单位:%',nameTextStyle: {color: 'rgba(255,255,255,.7)',fontSize: 8},max: 100,min: 0,boundaryGap: [0.2, 0.2],"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},axisLabel: {textStyle: {color: 'rgba(255,255,255,.8)',fontSize: 8// opacity: 0.1,}},splitLine: {  //决定是否显示坐标中网格show: true,lineStyle: {color: ['#fff'],opacity: 0.2}},},{type: 'value',scale: true,show: false,// name: "销量额(万元)",nameTextStyle: {color: 'rgba(255,255,255,.2)',},max: 1,min: 0,boundaryGap: [0.2, 0.2],"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},axisLabel: {textStyle: {color: 'rgba(255,255,255,.2)',// opacity: 0.1,}},splitLine: {  //决定是否显示坐标中网格show: true,lineStyle: {color: ['#fff'],opacity: 0.2}},}],color: ['#0EFCFF', '#FD9133'],grid: {left: '5%',right: '1%',top: '25%',bottom: '15%'// containLabel: true},series: [{barWidth: '10%',name: '财务',type: 'bar',data: caiArr,},{animationDuration: 2500,barWidth: '20%',name: '村务',type: 'bar',data: cunArr,},{animationDuration: 2500,barWidth: '20%',name: '党务',type: 'bar',data: danArr,},{animationDuration: 2500,barWidth: '20%',name: '居务',type: 'bar',data: junArr,},{animationDuration: 2500,barWidth: '20%',name: '政务',type: 'bar',data: zhenArr,}]};contentChart.setOption(option)setInterval(function() {contentChart.clear()contentChart.setOption(option)},90000)},// 巡察publicNumFn:function() {var resArr = [{name: '测试11', value: 300},{name: '测试22', value: 500},{name: '测试33', value: 400},{name: '测试44', value: 350},{name: '测试55', value: 363},{name: '测试66', value: 800},]var xunArr = []var jingArr = []var dateArr = []for(var i = 0; i < resArr.length; i++) {xunArr.push(resArr[i].value)jingArr.push(resArr[i].value)dateArr.push(resArr[i].name)}var publicNumChart = echarts.init(document.getElementById('publicNumId'));var option = {tooltip: {trigger: 'axis'},legend: {x: '35%',y: '0%',data: ['巡察', '警示'],textStyle: {color: "#fff",fontSize: 8},itemWidth: 10,itemHeight: 10,},calculable: true,xAxis: [{type: 'category',data: dateArr,axisLabel: {interval: 0,textStyle: {fontSize: 8,color: 'rgba(255,255,255,.7)',}},"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},}],yAxis: [{type: 'value',scale: true,name: '单位:%',nameTextStyle: {color: 'rgba(255,255,255,.7)',fontSize: 8},max: 1000,min: 0,boundaryGap: [0.2, 0.2],"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},axisLabel: {textStyle: {color: 'rgba(255,255,255,.8)',fontSize: 8// opacity: 0.1,}},splitLine: {  //决定是否显示坐标中网格show: true,lineStyle: {color: ['#fff'],opacity: 0.2}},},{type: 'value',scale: true,show: false,// name: "销量额(万元)",nameTextStyle: {color: 'rgba(255,255,255,.2)',},max: 1,min: 0,boundaryGap: [0.2, 0.2],"axisTick": {       //y轴刻度线"show": false},"axisLine": {       //y轴"show": false,},axisLabel: {textStyle: {color: 'rgba(255,255,255,.2)',// opacity: 0.1,}},splitLine: {  //决定是否显示坐标中网格show: true,lineStyle: {color: ['#fff'],opacity: 0.2}},}],color: ['#2E8CFF', '#38EB70'],grid: {left: '5%',right: '1%',top: '25%',bottom: '15%'// containLabel: true},series: [{animationDuration: 2500,barWidth: '20%',name: '巡察',type: 'bar',data: xunArr,},{barWidth: '20%',name: '警示',type: 'bar',data: jingArr,}],animationEasing: 'cubicOut'};publicNumChart.setOption(option)setInterval(function() {publicNumChart.clear()publicNumChart.setOption(option)},60000)}}var start = new apiFn()start.Init()})
</script>

完整源码见资源绑定

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/pingmian/63161.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

白鲸开源即将在Doris Summit Asia 2024展示新议题!

一年一度的 Apache Doris 峰会再次启航&#xff0c;Doris Summit Asia 2024 现已开启报名&#xff0c;将于 2024 年 12 月 14 日在深圳正式举办。此次峰会&#xff0c;将对实时极速、存算分离、湖仓一体、半结构化数据分析、向量索引、异步物化视图等诸多特性进行全方位解读&am…

vscode插件 live-server配置https

背景&#xff1a;前端有时候需要在本地搭建https环境测试某些内容&#xff08;如https下访问http资源&#xff0c;下载&#xff09; 步骤&#xff1a; 1.vscode集成开发软件(应该所有前端开发同学都安装了&#xff0c;我用webstorm&#xff0c;vscode备用) 2.vscode安装live…

Mac环境下brew安装LNMP

安装不同版本PHP 在Mac环境下同时运行多个版本的PHP&#xff0c;同Linux环境一样&#xff0c;都是将后台运行的php-fpm设置为不同的端口号&#xff0c;下面将已php7.2 和 php7.4为例 添加 tap 目的&#xff1a;homebrew仅保留最近的php版本&#xff0c;可能没有你需要的版本…

代发考试战报:12月近几日通过,题库已经更新至12月5号

代发考试战报&#xff1a;12月近几日通过&#xff0c;题库已经更新至12月5号&#xff0c;考试大约会遇到几个新题&#xff0c;就算遇到的新题全错&#xff0c;也不影响考试通过&#xff0c;HCIA-PM 12月2号上海通过&#xff0c;售前L3 H19-435 HCSP-Storage 存储 上海通过&…

autogen 源码 (UserProxyAgent 类)

目录 1. 原始代码2. 代码测试3. 代码的运行逻辑4. UserProxyAgent 类的核心功能5. UserProxyAgent 类的使用6. 运行时流程7. 总结 1. 原始代码 import asyncio from inspect import iscoroutinefunction from typing import Awaitable, Callable, List, Optional, Sequence, U…

沪合共融 “汽”势如虹 | 昂辉科技参加合肥上海新能源汽车产业融合对接会

为积极响应制造业重点产业链高质量发展行动号召&#xff0c;促进合肥、上海两地新能源汽车产业链上下游企业融合对接、协同发展&#xff0c;共同打造长三角世界级新能源汽车产业集群&#xff0c;11月28日&#xff0c;合肥市工信局组织部分县区工信部门及全市30余户新能源汽车产…

taro小程序马甲包插件

插件名 maloulab/taro-plugins-socksuppet-ci maloulab/taro-plugins-socksuppet-ci安装 yarn add maloulab/taro-plugins-socksuppet-ci or npm i maloulab/taro-plugins-socksuppet-ci插件描述 taro官方是提供了小程序集成插件的tarojs/plugin-mini-ci &#xff0c;且支持…

SpringBoot 基于 MVC 高校办公室行政事务管理系统:设计构思与实现范例展示

摘 要 身处网络时代&#xff0c;随着网络系统体系发展的不断成熟和完善&#xff0c;人们的生活也随之发生了很大的变化&#xff0c;人们在追求较高物质生活的同时&#xff0c;也在想着如何使自身的精神内涵得到提升&#xff0c;而读书就是人们获得精神享受非常重要的途径。为了…

vue 通过 image-conversion 实现图片压缩

简介 vue项目中&#xff0c;上传图片时如果图片很大&#xff0c;通过 image-conversion 压缩到指定大小 1. 安装依赖 npm i image-conversion --save2. 引用 import * as imageConversion from image-conversion3. 使用 const newFile new Promise((resolve) > {// 压…

vite5+vue3+Ts5 开源图片预览器上线

images-viewer-vue3&#xff1a;一款Vue3的轻量级图像查看器&#xff0c;它基于Flip动画技术&#xff0c;支持PC和h5移动网页预览照片&#xff0c;如果它是Vue3开发的产品。 npm开源地址:https://www.npmjs.com/package/images-viewer-vue3?activeTabreadme Flip 动画 < …

人工智能驱动的骗局会模仿熟悉的声音

由于人工智能技术的进步&#xff0c;各种现代骗局变得越来越复杂。 这些骗局现在包括人工智能驱动的网络钓鱼技术&#xff0c;即使用人工智能模仿家人或朋友的声音和视频。 诈骗者使用来自社交媒体的内容来制作深度伪造内容&#xff0c;要求提供金钱或个人信息。个人应该通过…

qt QGraphicsScale详解

1、概述 QGraphicsScale是Qt框架中提供的一个类&#xff0c;它提供了一种简单而灵活的方式在QGraphicsView框架中实现缩放变换。通过设置水平和垂直缩放因子、缩放中心点&#xff0c;可以创建各种缩放效果&#xff0c;提升用户界面的交互性和视觉吸引力。结合QPropertyAnimati…

【基础编程】面向对象编程(OOP)详细解析

面向对象编程&#xff08;OOP&#xff09;详细解析 一、核心概念解析 1. 类&#xff08;Class&#xff09; 类是构建对象的蓝图&#xff0c;定义了对象的属性和方法。通过类的实例化&#xff0c;生成实际的对象。 关键特点&#xff1a; 属性&#xff08;字段&#xff09;&…

车载VR可视化解决方案

车载VR可视化解决方案是通过融合跟踪用户头部运动的特殊预测算法与惯性测量数据而开发的。该系统将大范围虚拟现实跟踪技术与IMU传感器相结合&#xff0c;为VR和AR应用打造了一套全面的运动跟踪与渲染流程&#xff0c;极大地方便了虚拟现实头显制造商定制可视化流程。 该车载VR…

Cesium 给大量建筑贴上PBR纹理

Cesium 给大量建筑贴上PBR纹理 —— 使用 TilesBuilder 从 SHP 文件转换 在Cesium中使用PBR&#xff08;物理基础渲染&#xff09;纹理给大量建筑物贴图时&#xff0c;TilesBuilder 是一个常用的图形化工具&#xff0c;它可以将原始数据转换成Cesium支持的 3D Tiles 格式。如果…

MySQL 性能优化详解

MySQL 性能优化详解 硬件升级系统配置优化调整buffer_pool数据预热降低日志的磁盘落盘 表结构设计优化SQL语句及索引优化SQL优化实战案例 MySQL性能优化我们可以从以下四个维度考虑&#xff1a;硬件升级、系统配置、表结构设计、SQL语句和索引。 从成本上来说&#xff1a;硬件升…

CSS 快速上手

目录 一. CSS概念 二. CSS语法 1. 基本语法规范 2. CSS的三种引入方式 (1) 行内样式 (2) 内部样式表 (3) 外部样式表 3. CSS选择器 (1) 标签选择器 (2) 类选择器 (3) id选择器 (4) 通配符选择器 (5) 复合选择器 <1> 空格 <2> 没有空格 <3> &q…

EasyRTC支持嵌入式智能硬件与微信小程序实时通话

基础建设如此发达的时代&#xff0c;各种物联网设备都越来越普及&#xff0c;尤其是可穿戴设备和智能家居设备的发展&#xff0c;而在物联网设备中&#xff0c;视频物联网设备又是特别受人关注的设备&#xff0c;因为他们具备有看得见的属性&#xff0c;像智能家居里面的摄像头…

00. Nginx-知识网络

知识目录 语雀知识网络&#xff0c;点击“”-- 点击“”查看知识网络 01. Nginx-基础知识 02. Nginx-虚拟主机 03. Nginx-Web模块 04. Nginx-访问控制 05. Nginx-代理服务 06. Nginx-负载均衡 07. Nginx-动静分离 08. Nginx-平滑升级 09. Nginx-日志切割 10. Nginx-…

TDesign:Checkbox 多选框,实现购物车中的多选,全选

Checkbox 多选框 实际开发时碰到的BUG&#xff1a; 1、当点击全选后&#xff0c;视图中的列表不会选中 // 01.点击全选&#xff0c;for循环向selectIds添加id selectIds.add(id); update(["card"]); // 02.视图中selectIds当前选中项的合集&#xff0c;id必须是Strin…