统计图表增加详情静态页面

This commit is contained in:
zhanghongqing
2018-08-24 14:17:53 +08:00
parent 7c9e65ecb1
commit b970557c78
9 changed files with 554 additions and 216 deletions

View File

@@ -1,7 +1,7 @@
*{
margin: 0;
padding: 0;
font-family: PingFangSC-Light, ;
font-family: PingFangSC-Light, Microsoft YaHei;
}
body,html{
width: 100%;
@@ -45,42 +45,7 @@ a {
.fr{
float: right;
}
/* header开始 */
.header-title {
width: 100%;
height: 115px;
padding: 30px 0 35px 0;
box-sizing: border-box;
}
.header-title>.title-center {
width: 440px;
height: 40px;
box-sizing: border-box;
border-right: 5px solid #333333;
border-left: 5px solid #333333;
/* background: url(../img/title.png) no-repeat; */
}
.header-title>.title-center>a {
margin-top: 1px;
margin-left: 130px;
color: #fff;
font-size: 30px;
font-weight: 600;
position: absolute;
}
.header-title>.title-left, .header-title>.title-right {
width: calc(50% - 220px);
height: 3px;
background: #333333;
margin-top: 10px;
}
.fl {
float: left;
}
.fr {
float: right;
}
td a {
color:#fff

View File

@@ -1,53 +1,65 @@
/* 页面整体布局 */
.data_content{
/*overflow-x: hidden;*/
/* min-width: 1366px; */
background-color: #303030;
padding-top: 40px;
padding-top: 30px;
padding-bottom: 10px;
}
/* */
/******************** info start *************************/
p{
margin: 10px
}
.data_content .data_info{
width: calc(100% - 30px);
width: calc(100% - 20px);
margin-bottom: 40px;
height: 110px;
margin-left: 15px;
text-align: center;
}
.data_content .data_info .info_1{
width: 40%;
.data_content .data_info .info_2{
width: 60%;
height: 110px;
}
.data_content .data_info .fr{
width: 40%;
.data_content .data_info .fr_fc{
width: 155%;
height: 110px;
border: 1px solid #303030;
border-width: 0 1px;
}
.data_content .data_info .fr_fc .fl_fc{
width: 100%;
height: 110px;
border: 1px solid #303030;
border-width: 0 1px;
margin-left: 0px;
}
.data_content .data_info .info_1>.text_1{
width: calc(100% - 15px);
.data_content .data_info .info_2>.text_2{
width: calc(100% - 10px);
background-color: #3D3D3D;
height: 110px;
}
.data_content .data_info .info_2{
width: 31%;
.data_content .data_info .info_1{
width: 40%;
height: 110px;
}
.data_content .data_info .info_1 .fr:first-child{
.data_content .data_info .info_2 .fr_fc:first-child{
border-left: none;
}
.data_content .data_info .info_1 .fr:last-child{
.data_content .data_info .info_2 .fr_fc:last-child{
border-right: none;
}
.data_content .data_info .info_2>.text_2{
width: calc(100% - 15px);
.data_content .data_info .info_1>.text_1{
width: calc(100% - 1px);
background-color: #3D3D3D;
height: 110px;
}
.data_content .data_info .info_3{
/* .data_content .data_info .info_3{
width: 29%;
height: 110px;
}
@@ -56,46 +68,81 @@
background-color: #3D3D3D;
height: 110px;
}
} */
.data_content .data_info>div.info_1>.text_1>div{
.data_content .data_info>div.info_2>.text_2>div{
width: 33.333%;
position: relative;
}
.data_content .data_info>div.info_2>div>div,
.data_content .data_info>div.info_3>div>div{
.data_content .data_info>div.info_1>div>div,
.data_content .data_info>div.info_2>div>div{
width: 50%;
position: relative;
}
.data_content .data_info>div>div>div>div{
margin-left:40px;
margin-left:10px;
margin-top: 1px;
}
.data_content .data_info>div.info_2>div>div>div{
margin-left: 40px;
.data_content .data_info>div.info_1>div>div>div{
margin-left: 10px;
margin-top: 1px;
}
.data_content .data_info p:nth-child(1){
color:#fff;
font-size: 12.8px;
text-align: center;
}
.data_content .data_info p:nth-child(2){
.data_content .data_info>div.info_1 p:nth-child(2){
font-weight: 600;
font-size: 28px;
color:#ffff43;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
.data_content .data_info>div.info_2 p:nth-child(2){
.data_content .data_info .info_2 .fr_fc .numberRun2{
font-weight: 600;
font-size: 28px;
color:#25f3e6;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
.data_content .data_info>div.info_3 p:nth-child(2){
.data_content .data_info .info_2 .fr_fc .numberRun3{
font-weight: 600;
font-size: 28px;
color:#ff4e4e;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
/* info end */
.data_content .data_info>div.info_2 .fl_fc .numberRun4{
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 1px;
}
.data_content .data_info>div.info_2 .fl_fc .csNum{
font-size: 5px;
color:#ff4e4e !important;
margin-top: 1px;
}
/* .data_info{
float: right;
margin-right: 15px;
} */
.fl_fc{
float: left;
}
.fr_fc{
float: left;
}
.clearfix:after,.clearfix:before{
content:".";
display: table;
}
.clearfix:after{
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
}
/************** info end ***********************/
.data_content .data_main{
width: calc(100% - 30px);

View File

@@ -28,7 +28,6 @@
});
});
console.log(data)
var chart = Highcharts.chart('chart_1', {
chart: {
type: 'pie',
@@ -41,9 +40,6 @@
},
noData:{
position:{
align:'center'
},
style: {//设置字体颜色
color: '#fff',
},
@@ -118,7 +114,7 @@
type: 'pie',
innerSize: '70%',//圆环的大小
name: 'count',
data: []
data: data
}],
drilldown:{
series:drillData,