echarts实现一个大数据大屏看板示例代码
代码语言:html
所属分类:图表
代码描述:echarts实现一个大数据大屏看板示例代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts-4.2.1.min.js"></script>
<style>
body{
background: #081325 url(//repo.bfw.wiki/bfwrepo/images/echarts/interact.png) center no-repeat;
background-size:cover;
}
div{
box-sizing: border-box;
}
.clearfix{
clear:both;
}
.container-header{
width:100%;
height:74px;
text-align: center;
box-sizing: border-box;
}
.container-header .nowTime{
position: absolute;
left:20px;
top:41px;
font-size: 0;
}
.container-header .nowTime li{
display: inline-block;
width:130px;
height:40px;
font-size: 24px;
color:#fff;
}
.nowTime li{
display: inline-block;
float: left;
/*font-weight: 800;*/
background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#5ec0d2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nowTime li div{
background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#5ec0d2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 12px;
text-align: left;
}
.nowTime li p {
background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#5ec0d2));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 12px;
}
.container-header .location{
position: absolute;
right:17px;
top:46px;
}
.location i{
font-size: 14px;
font-weight: 800;
color:#7e9bc6;
}
.location span{
font-size: 16px;
line-height: 30px;
color:#168fcd;
}
.container-header h3{
line-height: 74px;
font-size: 40px;
font-weight: 800;
color:#fff;
}
/* 边角 */
.left-top,.right-top,.left-bottom,.right-bottom{
position:absolute;
width:13px;
height:13px;
}
.left-top{
left:0;
top:0;
border-left:solid 2px #045291;
border-top:solid 2px #045291;
}
.right-top{
right:0;
top:0;
border-right:solid 2px #045291;
border-top:solid 2px #045291;
}
.left-bottom{
left:0;
bottom:0;
border-left:solid 2px #045291;
border-bottom:solid 2px #045291;
}
.right-bottom{
right:0;
bottom:0;
border-right:solid 2px #045291;
border-bottom:solid 2px #045291;
}
.resource-right .com-count-title{
font-size: 16px;
margin-left: 10px;
}
.com-count-title{
color:#1bb4f9;
padding:20px;
font-size: 22px;
}
.com-screen-content{
width:100%;
height:auto;
}
.com-screen-content2{
width:100%;
height:auto;
}
.filter-type{
font-size: 0;
}
.filter-type li:hover{
cursor: pointer;
}
.filter-type li{
display: inline-block;
width:120px;
line-height: 40px;
font-family: myFirstFont;
font-size: 20px;
text-align:center ;
color:#024f9b;
border:solid 1px #075797;
background:#0d2343;
}
.filter-type li.active{
color:white;
background:#0c182d;
border:solid 1px #1bb9f9;
}
.container-content{
padding:10px 20px;
box-sizing: border-box;
}
.count-base,.count-resource,.count-share,.count-topic{
position:relative;
padding:20px;
margin-top: 10px;
box-sizing: border-box;
}
.com-count-title{
color:#1bb4f9;
font-size: 16px;
padding:0;
}
.count-base{
margin-left:10px;
float:left;/*浮动*/
width:32%;
height:350px;
background: url('//repo.bfw.wiki/bfwrepo/images/echarts/left-top3.jpg') center no-repeat;
background-size:cover;
}
.count-resource{
margin-left:10px;
float:left;
width:32%;
height:350px;
background: url('//repo.bfw.wiki/bfwrepo/images/echarts/left-top3.jpg') center no-repeat;
background-size:cover;
}
.count-share{
margin-left:10px;
float:left;
width:48.4%;
height:350px;
background: url('//repo.bfw.wiki/bfwrepo/images/echarts/left-bottom2.jpg') center no-repeat;
background-size:cover;
}
.count-topic{
margin-left:10px;
float:left;
width:48.4%;
height:350px;
background: url('//repo.bfw.wiki/bfwrepo/images/echarts/left-bottom2.jpg') center no-repeat;
background-size:cover;
}
.data-label{
position:absolute;
top:20px;
right:10px;
}
.data-label li{
float:left;
width: 90px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0