Commit 06dac29f by wangmin

能耗

parent 83968555
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="123" height="98" viewBox="0 0 123 98"><defs><linearGradient x1="0.45588240027427673" y1="0.7766991853713989" x2="0.4485294222831726" y2="0.019417470321059227" id="master_svg0_10629_015266"><stop offset="0%" stop-color="#FD5656" stop-opacity="1"/><stop offset="100%" stop-color="#FD5656" stop-opacity="0"/></linearGradient><filter id="master_svg1_19847_99715" filterUnits="objectBoundingBox" color-interpolation-filters="sRGB" x="0" y="0" width="53.880699157714844" height="62.60801696777344"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2" dx="0"/><feGaussianBlur stdDeviation="0"/><feColorMatrix type="matrix" values="0 0 0 0 0.3874000012874603 0 0 0 0 0.1135082021355629 0 0 0 0 0.1135082021355629 0 0 0 1 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter><linearGradient x1="0.5" y1="0" x2="0.5" y2="1" id="master_svg2_10629_012297"><stop offset="2.857142873108387%" stop-color="#FFE5E5" stop-opacity="1"/><stop offset="99.28571581840515%" stop-color="#EC7E72" stop-opacity="1"/></linearGradient></defs><g><g style="opacity:0.30000001192092896;"><path d="M24.0552,69.9480375C24.0552,69.9480375,1,8.6484375,1,8.6484375C1,8.6484375,122,8.6484375,122,8.6484375C122,8.6484375,100.0578,69.9481375,100.0578,69.9481375C100.0578,69.9481375,61.8185,88.5708375,61.8185,88.5708375C61.8185,88.5708375,24.0552,69.9480375,24.0552,69.9480375Z" fill="url(#master_svg0_10629_015266)" fill-opacity="1"/></g><g style="opacity:0.4000000059604645;"><path d="M61.54584921875,53.65625C61.54584921875,53.65625,25.64794921875,69.95115,25.64794921875,69.95115C25.64794921875,69.95115,61.54584921875,87.79795,61.54584921875,87.79795C61.54584921875,87.79795,98.22454921875,69.95115,98.22454921875,69.95115C98.22454921875,69.95115,61.54584921875,53.65625,61.54584921875,53.65625Z" fill="#FD5656" fill-opacity="1"/><path d="M99.40974921875,69.93045000000001L98.42754921875,69.49415L61.54354921875,53.10815L24.48349921875,69.93055L61.54344921875,88.35515000000001L99.40974921875,69.93045000000001ZM97.03944921875,69.97175L61.54804921875,54.20435L26.81239921875,69.97165L61.54814921875,87.24074999999999L97.03944921875,69.97175Z" fill-rule="evenodd" fill="#FD5656" fill-opacity="1"/></g><g style="opacity:0.20000000298023224;"><path d="M61.98178984375,67.62109375C61.98178984375,67.62109375,30.32958984375,81.69389375,30.32958984375,81.69389375C30.32958984375,81.69389375,61.981689843750004,97.10699375,61.981689843750004,97.10699375C61.981689843750004,97.10699375,94.32188984375,81.69389375,94.32188984375,81.69389375C94.32188984375,81.69389375,61.98178984375,67.62109375,61.98178984375,67.62109375Z" fill="#FD5656" fill-opacity="1"/><path d="M95.52748984375,81.67319375L94.52138984375,81.23549375L61.97958984375,67.07486375L29.14520984375,81.67329375L61.97938984375,97.66199375L95.52748984375,81.67319375ZM93.11628984375,81.71459375L61.98388984375,68.16732375L31.51396984375,81.71449375L61.983989843749995,96.55199375000001L93.11628984375,81.71459375Z" fill-rule="evenodd" fill="#FD5656" fill-opacity="1"/></g><g style="opacity:0.800000011920929;"><path d="" fill="#FD5656" fill-opacity="1"/><path d="M59.01224921875,54.117634L67.98714921875,57.865610000000004L68.37244921875,56.94284L59.39754921875,53.194866L59.01224921875,54.117634ZM99.43884921875,69.91635L87.52804921875,64.94235L87.14264921875,65.86505L97.01034921875,69.98585L89.05924921875,73.85464999999999L89.49674921875,74.75385L99.43884921875,69.91635ZM24.51416921875,69.94585000000001L34.18158921875,74.75195L34.626759218749996,73.85655L26.78172921875,69.95635L35.23107921875,65.85345L34.79426921875,64.95395L24.51416921875,69.94585000000001ZM61.54364921875,88.35505L70.53574921875,83.97975L70.09824921875,83.08055L61.54844921875,87.24065L53.18434921875,83.08245L52.73914921875,83.97785L61.54364921875,88.35505Z" fill-rule="evenodd" fill="#FD5656" fill-opacity="1"/></g><g filter="url(#master_svg1_19847_99715)"><path d="M89.04957065429687,19.088116996765137Q89.04957065429687,18.695516996765136,88.99847065429688,18.306316996765137Q88.94727065429687,17.91701699676514,88.84587065429687,17.537816996765137Q88.74437065429687,17.158616996765137,88.59437065429688,16.795816996765137Q88.44447065429688,16.433016996765136,88.24847065429688,16.092816996765137Q88.05247065429688,15.752716996765137,87.81387065429688,15.440916996765136Q87.57527065429687,15.129216996765138,87.29807065429688,14.851316996765137Q87.02077065429688,14.573316996765136,86.70977065429688,14.333816996765137Q86.39867065429686,14.094316996765137,86.05907065429687,13.897416996765136L65.11877065429687,1.7564019967651368Q64.94817065429687,1.6575369967651368,64.77157065429688,1.5700769967651367Q64.59497065429687,1.4826159967651367,64.41297065429687,1.4069369967651366Q64.23097065429687,1.3312579967651368,64.04437065429687,1.2676879967651367Q63.85777065429687,1.2041169967651366,63.66747065429688,1.1529279967651367Q63.477070654296874,1.1017389967651368,63.28377065429687,1.0631529967651367Q63.09047065429688,1.0245666967651368,62.89507065429687,0.9987497967651368Q62.699670654296874,0.9729329967651367,62.502970654296874,0.9599966967651368Q62.30637065429687,0.9470603467651367,62.10927065429688,0.9470603467651367Q61.912070654296876,0.9470603467651367,61.71547065429688,0.9599966967651368Q61.51877065429687,0.9729329967651367,61.32337065429687,0.9987497967651368Q61.127970654296874,1.0245666967651368,60.93467065429687,1.0631529967651367Q60.74137065429687,1.1017389967651368,60.550970654296876,1.1529279967651367Q60.360670654296875,1.2041169967651366,60.17407065429688,1.2676879967651367Q59.987570654296874,1.3312579967651368,59.80557065429687,1.4069369967651366Q59.62357065429687,1.4826159967651367,59.44687065429687,1.5700769967651367Q59.27027065429688,1.6575369967651368,59.099770654296876,1.7564019967651368L38.159380654296875,13.897416996765136Q37.81976065429687,14.094316996765137,37.50869065429688,14.333816996765137Q37.19763065429687,14.573316996765136,36.920420654296876,14.851316996765137Q36.64321065429687,15.129216996765138,36.40458065429687,15.440916996765136Q36.165957654296875,15.752716996765137,35.96998265429688,16.092816996765137Q35.774007654296874,16.433016996765136,35.62402565429687,16.795816996765137Q35.47404365429688,17.158616996765137,35.372611654296875,17.537816996765137Q35.27117965429687,17.91701699676514,35.22002815429688,18.306316996765137Q35.16887617129687,18.695516996765136,35.16887617129687,19.088116996765137L35.16887712429688,43.414016996765135Q35.16887712429688,43.806616996765136,35.22002905429687,44.19581699676514Q35.27118065429688,44.58511699676514,35.37261265429687,44.964316996765135Q35.474044654296875,45.34351699676514,35.62402665429688,45.70631699676514Q35.77400865429688,46.06911699676514,35.969983654296875,46.409316996765135Q36.16595865429687,46.749416996765135,36.40458065429687,47.06121699676514Q36.64321065429687,47.372916996765134,36.920420654296876,47.65081699676514Q37.19763065429687,47.928816996765136,37.508700654296874,48.168316996765135Q37.81976065429687,48.407816996765135,38.159380654296875,48.604716996765134L59.099770654296876,60.74571699676514Q59.27027065429688,60.84461699676514,59.44687065429687,60.932016996765135Q59.62357065429687,61.019516996765134,59.80557065429687,61.09521699676514Q59.987570654296874,61.170916996765136,60.17407065429688,61.234416996765134Q60.360670654296875,61.298016996765135,60.550970654296876,61.349216996765136Q60.74137065429687,61.40041699676514,60.93467065429687,61.43901699676513Q61.127970654296874,61.477616996765136,61.32337065429687,61.50341699676514Q61.51877065429687,61.529216996765136,61.71547065429688,61.54211699676514Q61.912070654296876,61.555116996765136,62.10927065429688,61.555116996765136Q62.30637065429687,61.555116996765136,62.502970654296874,61.54211699676514Q62.699670654296874,61.529216996765136,62.89507065429687,61.50341699676514Q63.09047065429688,61.47751699676514,63.28377065429687,61.43901699676513Q63.477070654296874,61.40041699676514,63.66747065429688,61.349216996765136Q63.85777065429687,61.298016996765135,64.04437065429687,61.234416996765134Q64.23097065429687,61.170916996765136,64.41297065429687,61.09521699676514Q64.59497065429687,61.019516996765134,64.77157065429688,60.932016996765135Q64.94817065429687,60.84461699676514,65.11877065429687,60.74571699676514L86.05907065429687,48.604716996765134Q86.39867065429686,48.407816996765135,86.70977065429688,48.168316996765135Q87.02077065429688,47.928816996765136,87.29807065429688,47.65081699676514Q87.57527065429687,47.372916996765134,87.81387065429688,47.06121699676514Q88.05247065429688,46.749416996765135,88.24847065429688,46.409316996765135Q88.44447065429688,46.06911699676514,88.59447065429688,45.70631699676514Q88.74437065429687,45.34351699676514,88.84587065429687,44.964316996765135Q88.94727065429687,44.58511699676514,88.99847065429688,44.19581699676514Q89.04957065429687,43.806616996765136,89.04957065429687,43.414016996765135L89.04957065429687,19.088116996765137ZM63.099070654296874,17.698116996765137C63.62237065429687,17.070516996765136,64.48457065429687,16.845716996765137,65.24577065429688,17.138416996765137C66.02277065429688,17.425616996765136,66.48567065429688,18.143716996765136,66.39277065429687,18.921116996765136L65.41527065429688,27.163616996765136L71.07247065429686,27.163616996765136C71.76987065429688,27.163616996765136,72.39947065429688,27.521916996765135,72.71197065429688,28.106816996765136C73.02607065429687,28.684216996765137,72.96857065429688,29.380116996765135,72.54977065429688,29.898316996765136L60.93617065429687,44.60971699676514C60.57497065429688,45.055316996765136,60.03237065429688,45.311516996765135,59.46177065429687,45.308516996765135C59.265670654296876,45.30561699676514,59.069570654296875,45.27591699676514,58.88237065429688,45.216716996765136C58.14957065429687,45.01391699676514,57.63647065429687,44.35201699676514,57.620270654296874,43.588016996765134L57.620270654296874,34.89981699676514L52.840370654296876,34.89981699676514C52.15917065429687,34.911716996765136,51.52517065429687,34.54601699676514,51.194970654296874,33.947816996765134C50.882070654296875,33.36701699676514,50.95277065429688,32.65341699676514,51.37337065429688,32.14591699676514L63.099070654296874,17.698116996765137Z" fill-rule="evenodd" fill="url(#master_svg2_10629_012297)" fill-opacity="1"/></g></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="10" height="68" viewBox="0 0 10 68"><g><g><g style="opacity:0.5;"><path d="M0.44667340624999996,62.48654375L6.39281640625,67.26774375L7.34390640625,66.08484375L1.96445940625,61.75934375L1.96445940625,6.38178375L7.34390640625,2.05625975L6.39281640625,0.87342775L0.44667340624999996,5.65462375L0.44667340624999996,62.48654375Z" fill-rule="evenodd" fill="#D8D8D8" fill-opacity="1"/></g><g><rect x="5.75830078125" y="0.4765625" width="3.0355730056762695" height="3.0355732440948486" rx="0" fill="#FFFFFF" fill-opacity="1"/></g><g><rect x="5.75830078125" y="64.4921875" width="3.0355730056762695" height="3.0355732440948486" rx="0" fill="#FFFFFF" fill-opacity="1"/></g></g></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="10" height="68" viewBox="0 0 10 68"><g transform="matrix(-1,0,0,1,20,0)"><g><g style="opacity:0.5;"><path d="M10.44667340625,62.48654375L16.39281640625,67.26774375L17.34390640625,66.08484375L11.96445940625,61.75934375L11.96445940625,6.38178375L17.34390640625,2.05625975L16.39281640625,0.87342775L10.44667340625,5.65462375L10.44667340625,62.48654375Z" fill-rule="evenodd" fill="#D8D8D8" fill-opacity="1"/></g><g><rect x="15.7587890625" y="0.4765625" width="3.0355730056762695" height="3.0355732440948486" rx="0" fill="#FFFFFF" fill-opacity="1"/></g><g><rect x="15.7587890625" y="64.4921875" width="3.0355730056762695" height="3.0355732440948486" rx="0" fill="#FFFFFF" fill-opacity="1"/></g></g></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="1169" height="40" viewBox="0 0 1169 40"><defs><linearGradient x1="1" y1="0.5" x2="0" y2="0.5" id="master_svg0_19847_82606"><stop offset="0%" stop-color="#5CB3FF" stop-opacity="0"/><stop offset="100%" stop-color="#5CB3FF" stop-opacity="1"/></linearGradient></defs><g style="opacity:0.20000000298023224;"><rect x="0" y="0" width="1169" height="40" rx="20" fill="url(#master_svg0_19847_82606)" fill-opacity="1"/></g></svg>
\ No newline at end of file
......@@ -54,7 +54,7 @@ body {
height: 6vh;
width: 60vw;
max-width: 766px;
background: url('./assets/top-bg.png') no-repeat;
background: url("./assets/top-bg.png") no-repeat;
background-size: 100% 100%;
position: relative;
left: 0;
......@@ -96,7 +96,7 @@ body {
.title > img {
width: 18px;
height: 18px;
margin-right: 4px;
margin-right: 10px;
}
.chart-wrap {
}
......@@ -111,7 +111,7 @@ body {
.echarts-box1 {
flex: 1;
}
.echarts-box1#distribution-charts{
.echarts-box1#distribution-charts {
height: 30vh;
}
.right {
......@@ -152,16 +152,20 @@ body {
.top-15-wrap > .items .process > span {
width: 100%;
height: 100%;
content: '';
content: "";
display: flex;
width: 70%;
position: absolute;
background: linear-gradient(to right, rgba(0, 216, 255, 1), rgba(0, 182, 255, 1));
background: linear-gradient(
to right,
rgba(0, 216, 255, 1),
rgba(0, 182, 255, 1)
);
}
.top-15-wrap > .items .process::after {
width: 100%;
height: 100%;
content: '';
content: "";
display: flex;
background-color: rgba(255, 255, 255, 0.1);
}
......@@ -228,7 +232,11 @@ body {
.popup > div:nth-of-type(1) > span {
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(92, 179, 255, 1), rgba(8, 86, 155, 1));
background: linear-gradient(
to bottom,
rgba(92, 179, 255, 1),
rgba(8, 86, 155, 1)
);
position: absolute;
border-radius: 50%;
z-index: 1;
......@@ -244,7 +252,7 @@ body {
}
.popup > div:nth-of-type(1)::before {
position: absolute;
content: '';
content: "";
width: 100%;
height: 100%;
background-color: rgba(52, 69, 94, 1);
......@@ -254,7 +262,7 @@ body {
}
.popup > div:nth-of-type(1)::after {
position: absolute;
content: '';
content: "";
width: 100%;
height: 100%;
background-color: rgba(52, 69, 94, 1);
......@@ -263,7 +271,11 @@ body {
border-radius: 50%;
}
.popup.right > div:nth-of-type(1) > span {
background: linear-gradient(to bottom, rgba(246, 133, 0, 1), rgba(168, 91, 0, 1));
background: linear-gradient(
to bottom,
rgba(246, 133, 0, 1),
rgba(168, 91, 0, 1)
);
}
.popup.right > div:nth-of-type(1)::before {
background: rgba(246, 133, 0, 0.3);
......@@ -304,7 +316,7 @@ body {
}
.echarts-title-top {
background: url('../assets/contract-bg.png') no-repeat;
background: url("../assets/contract-bg.png") no-repeat;
width: 208px;
height: 208px;
background-size: cover;
......@@ -504,3 +516,90 @@ body {
border-radius: 0px 0px 0px 0px;
margin: 27px 0 37px;
}
.timePeriod {
margin-bottom: 19px;
}
.timePeriod-textBox {
width: 100%;
height: 28px;
background: linear-gradient(-90deg, rgba(92,179,255,0) 0%, rgba(92,179,255,0.2) 100%);
background-size: cover;
border-radius: 20px;
margin-bottom: 30px;
}
.timePeriod-textBox-text {
font-size: 12px;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #ffffff;
line-height: 12px;
display: inline-block;
margin-left: 20px;
margin-top: 8px;
}
.echarts-timePeriod {
width: 100%;
height: 380px;
background: rgba(8, 16, 24, 0.27);
padding: 20px 20px 20px 0;
margin-bottom: 24px;
}
.avgMonthlyBox {
background: rgba(255, 255, 255, 0.05);
height: 200px;
width: calc(100% - 2.4vw);
margin-bottom: 24px;
padding: 16px 30px 0 30px;
}
.avgMonthlyBox-title {
font-size: 14px;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #ffffff;
line-height: 22px;
letter-spacing: 1px;
margin-bottom: 39px;
}
.avgMonthlyBox-content {
display: flex;
width: 100%;
}
.content-item {
width: 15%;
padding-top: 17px;
text-align: center;
}
.item-text1 {
font-size: 14px;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: 400;
color: #ffffff;
line-height: 22px;
letter-spacing: 2px;
margin-bottom: 10px;
}
.item-text2 {
font-size: 24px;
font-family: DINAlternate-Bold-Regular, DINAlternate-Bold;
font-weight: 400;
color: #ffffff;
line-height: 27px;
margin-bottom: 10px;
}
.content-item-r {
width: 26%;
display: flex;
margin-left: 5%;
}
.item-r-text{
font-size: 14px;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
line-height: 25px;
letter-spacing: 2px;
margin: 22px 1% 0 4%;
}
.item-r-text-red{
color: #FF6464;
}
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"
/>
<title>能耗报告</title>
<script src="https://cdn.bootcss.com/echarts/5.2.0/echarts.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
<link rel="stylesheet" href="./index.css">
</head>
<link rel="stylesheet" href="./index.css" />
</head>
<body>
<body>
<div class="energy-wrap">
<div class="header">
成阿园区月度用电报告
</div>
<div class="header">成阿园区月度用电报告</div>
<!-- 用电趋势 -->
<div class="chart-wrap">
<div class="title">
<img src="./assets/title-arrow.png" alt="">
<img src="./assets/title-arrow.png" alt="" />
用电趋势
</div>
<div id="repair-require" class="echarts-box"></div>
......@@ -26,26 +26,26 @@
<!-- 企业用电量排名TOP15 -->
<div class="top-15">
<div class="title">
<img src="./assets/title-arrow.png" alt="">
<img src="./assets/title-arrow.png" alt="" />
企业用电量排名TOP15
</div>
<div class="top-15-wrap">
<div class="items">
<span class="index">01</span>
<p class="company-name text-overflow">成都金瑞纳生物科技有限公司</p>
<p class="process"><span style="width: 70%;"></span></p>
<p class="process"><span style="width: 70%"></span></p>
<p class="unit text-overflow">90000<span>MWh</span></p>
</div>
<div class="items">
<span class="index">02</span>
<p class="company-name text-overflow">成都金瑞纳生物科技有限公司</p>
<p class="process"><span style="width: 70%;"></span></p>
<p class="process"><span style="width: 70%"></span></p>
<p class="unit text-overflow">90000<span>MWh</span></p>
</div>
<div class="items">
<span class="index">03</span>
<p class="company-name text-overflow">成都金瑞纳生物科技有限公司</p>
<p class="process"><span style="width: 70%;"></span></p>
<p class="process"><span style="width: 70%"></span></p>
<p class="unit text-overflow">90000<span>MWh</span></p>
</div>
</div>
......@@ -74,7 +74,7 @@
<!-- 功率因数企业分布 -->
<div class="distribution">
<div class="title">
<img src="./assets/title-arrow.png" alt="">
<img src="./assets/title-arrow.png" alt="" />
功率因数企业分布
</div>
<div class="distribution-wrap">
......@@ -85,25 +85,103 @@
<!-- 月度功率因数趋势 -->
<!-- 企业生产时段分析 - 尖峰平谷各时段生产状况 -->
<!-- 分时段企业用电情况分析 -->
<div class="timePeriod">
<div class="title">
<img src="./assets/title-arrow.png" />
尖峰平谷各时段,进行生产的企业月度平均数
</div>
<div class="timePeriod-wrap">
<!-- 尖峰平谷各时段,进行生产的企业月度平均数 -->
<div class="timePeriod-textBox">
<span class="timePeriod-textBox-text">
尖峰平谷各时段,进行生产的企业月度平均数
</span>
</div>
<div id="timePeriod-barCharts-1" class="echarts-timePeriod"></div>
<!-- 各时段生产企业 月度平均数(家) -->
<div class="avgMonthlyBox">
<div class="avgMonthlyBox-title">各时段生产企业 月度平均数(家)</div>
<div class="avgMonthlyBox-content">
<img src="./assets/avgMonthlyIcon.svg" />
<div class="content-item">
<div class="item-text1">尖时</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">峰叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">平叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">谷叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item-r">
<img src="./assets/avgMonthlyLeft.svg" />
<div class="item-r-text">
可以看出大部分企业集中生产在<span class="item-r-text-red">10点~12点</span>时段比较集中
</div>
<img src="./assets/avgMonthlyRight.svg" />
</div>
</div>
</div>
<!-- 尖峰平谷各时段,集中生产的企业月度平均数 -->
<!-- 各时段集中生产企业 月度平均数(家) -->
<div class="avgMonthlyBox">
<div class="avgMonthlyBox-title">各时段集中生产企业 月度平均数(家)</div>
<div class="avgMonthlyBox-content">
<img src="./assets/avgMonthlyIcon.svg" />
<div class="content-item">
<div class="item-text1">尖时</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">峰叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">平叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item">
<div class="item-text1">谷叫</div>
<div class="item-text2">205</div>
</div>
<div class="content-item-r">
<img src="./assets/avgMonthlyLeft.svg" />
<div class="item-r-text">
可以看出大部分企业集中生产在<span class="item-r-text-red">10点~12点</span>时段比较集中
</div>
<img src="./assets/avgMonthlyRight.svg" />
</div>
</div>
</div>
<!-- 尖峰平谷各时段的企业用电量分析 -->
<div class="timePeriod-textBox">
<span class="timePeriod-textBox-text">
尖峰平谷各时段的企业用电量分析
</span>
</div>
<div id="timePeriod-barCharts-3" class="echarts-timePeriod"></div>
</div>
</div>
<!-- 企业生产时段分析 - 尖峰平谷各时段集中生产 -->
<!-- 园区企业生产状态分析 -->
<!--尖峰平谷各时段的企业用电量分析-->
<div>尖峰平谷各时段的企业用电量分析</div>
<div class="flex analysis-content">
<div id="repair-require8"></div>
</div>
<!--用电结构-->
<div class="flex electricity-content">
<div class="echarts-box1">
<div class="electricity-content-title">用电结构</div>
<div class="echarts-title-content">
<div class="echarts-title-top">
<div id="repair-require9" class="echarts-title-repair-top">
</div>
<div id="repair-require9" class="echarts-title-repair-top"></div>
</div>
<div class="chart-desc">
<div class="chart-desc-task">
......@@ -132,8 +210,6 @@
</div>
</div>
</div>
</div>
<div class="echarts-box1 echarts-box1-right">
<div class="invest-wrapper-content">
......@@ -141,9 +217,13 @@
<img src="../assets/bracket-left.png" />
</div>
<div class="invest-wrapper-content-first">
<span class="invest-wrapper-content-first-text">可以看出尖、峰时段的用电量已经超过总用电量的</span>
<span class="invest-wrapper-content-first-text"
>可以看出尖、峰时段的用电量已经超过总用电量的</span
>
<span class="invest-wrapper-content-customers">12%</span>
<span class="invest-wrapper-content-second-text">在电价上有一定的优化空间。</span>
<span class="invest-wrapper-content-second-text"
>在电价上有一定的优化空间。</span
>
</div>
<div class="invest-wrapper-right-bracket">
<img src="../assets/bracket-right.png" />
......@@ -154,12 +234,14 @@
<!--园区企业生产状态/企业生产工作制分析-->
<div class="flex">
<div class="echarts-box1">
<div class="echarts-title"><img src="./assets/pic10.png"></div>
<div class="echarts-title"><img src="./assets/pic10.png" /></div>
<div class="echarts-title-repair echarts-title-repair-left">
<div class="echarts-title-content">
<div class="echarts-title-top">
<div id="repair-require10" class="echarts-title-repair-top">
</div>
<div
id="repair-require10"
class="echarts-title-repair-top"
></div>
</div>
<div class="chart-desc">
<div class="chart-desc-task">
......@@ -181,119 +263,169 @@
<img src="../assets/desc-line.png" />
</div>
</div>
</div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>达产率:一共有<span
class="echarts-title-repair-list-right-red">880家</span>企业在<span
class="echarts-title-repair-list-right-red">2023年5月</span>已达到往期正常生产水平,<span
class="echarts-title-repair-list-right-red">占比61%</span></span></div>
</div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>超产率:一共有<span
class="echarts-title-repair-list-right-red">234家</span>企业<span
class="echarts-title-repair-list-right-red">2023年5月</span>用电量较以往三个月的平均值高出15%,生产势头旺盛,<span
class="echarts-title-repair-list-right-red">占比32%</span></span></div>
</div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>不景气率:一共有<span
class="echarts-title-repair-list-right-red">120家</span>企业<span
class="echarts-title-repair-list-right-red">2023年5月</span>用电量较往前三个月的平均值减少15%,<span
class="echarts-title-repair-list-right-red">占比6%</span>,需要重点关注其生产情况</span></div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>达产率:一共有<span
class="echarts-title-repair-list-right-red"
>880家</span
>企业在<span class="echarts-title-repair-list-right-red"
>2023年5月</span
>已达到往期正常生产水平,<span
class="echarts-title-repair-list-right-red"
>占比61%</span
></span
>
</div>
</div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>超产率:一共有<span
class="echarts-title-repair-list-right-red"
>234家</span
>企业<span class="echarts-title-repair-list-right-red"
>2023年5月</span
>用电量较以往三个月的平均值高出15%,生产势头旺盛,<span
class="echarts-title-repair-list-right-red"
>占比32%</span
></span
>
</div>
</div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>不景气率:一共有<span
class="echarts-title-repair-list-right-red"
>120家</span
>企业<span class="echarts-title-repair-list-right-red"
>2023年5月</span
>用电量较往前三个月的平均值减少15%,<span
class="echarts-title-repair-list-right-red"
>占比6%</span
>,需要重点关注其生产情况</span
>
</div>
</div>
</div>
</div>
<div class="echarts-box1">
<div class="echarts-title"><img src="./assets/pic11.png"></div>
<div class="echarts-title"><img src="./assets/pic11.png" /></div>
<div class="echarts-title-repair">
<div id="repair-require11" class="echarts-title-repair-top2"></div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>白天8小时工作制的企业一共有<span
class="echarts-title-repair-list-right-red">112家,占比25%。</span>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red">894486KWh,占比34%。</span> </span></div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>白天8小时工作制的企业一共有<span
class="echarts-title-repair-list-right-red"
>112家,占比25%。</span
>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red"
>894486KWh,占比34%。</span
>
</span>
</div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>24小时不间断生产的企业一共有<span
class="echarts-title-repair-list-right-red">356家,占比3.5%。</span>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red">578900KWh,占比11%。</span> </span></div>
</div>
<div class="echarts-title-repair-list"><img src="./assets/icon1.png">
<div class="echarts-title-repair-list-right"><span>非规律生产的企业一共有<span
class="echarts-title-repair-list-right-red">45家,占比11%。</span>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red">905725KWh,占比54%。</span> </span></div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>24小时不间断生产的企业一共有<span
class="echarts-title-repair-list-right-red"
>356家,占比3.5%。</span
>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red"
>578900KWh,占比11%。</span
>
</span>
</div>
</div>
<div class="echarts-title-repair-list">
<img src="./assets/icon1.png" />
<div class="echarts-title-repair-list-right">
<span
>非规律生产的企业一共有<span
class="echarts-title-repair-list-right-red"
>45家,占比11%。</span
>这类企业一共用电量是<span
class="echarts-title-repair-list-right-red"
>905725KWh,占比54%。</span
>
</span>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
</div>
</body>
<script>
window.onload = function () {
var myChart8, myChart9, myChart10, myChart11;
const myChart = {}
const myChart = {};
function initEcharts(el, option) {
var ele = echarts.init(document.querySelector(el));
myChart[el] = ele;
option && ele.setOption({ ...option })
option && ele.setOption({ ...option });
}
const getOption = () => {
return {
}
}
return {};
};
const getEcharts = () => {
let option = {
tooltip: {
trigger: 'axis',
axisPointer: { type: 'shadow' }
trigger: "axis",
axisPointer: { type: "shadow" },
},
legend: {
show: true,
itemWidth: 14,
top: 0,
textStyle: {
color: "#fff"
color: "#fff",
},
},
dataZoom: [//给x轴设置滚动条
dataZoom: [
//给x轴设置滚动条
{
type: 'slider',//slider表示有滑动块的,inside表示内置的
type: "slider", //slider表示有滑动块的,inside表示内置的
// startValue: 8,//可用于设置开始显示的柱子的长度
// endValue: 1,//可用于设置结束显示的柱子的长度
start: 80,//默认为0 可设置滚动条从在后进行展示
end: 100,//默认为100
start: 80, //默认为0 可设置滚动条从在后进行展示
end: 100, //默认为100
show: true,
xAxisIndex: [0],
handleSize: 0,//滑动条的 左右2个滑动条的大小
height: 8,//组件高度
left: '10%', //左边的距离
right: '10%',//右边的距离
bottom: -2,//右边的距离
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 8, //组件高度
left: "10%", //左边的距离
right: "10%", //右边的距离
bottom: -2, //右边的距离
borderColor: "#F4F4F4",
fillerColor: '#E7E7E7',
backgroundColor: '#F4F4F4',//两边未选中的滑动条区域的颜色
showDataShadow: false,//是否显示数据阴影 默认auto
showDetail: false,//即拖拽时候是否显示详细数值信息 默认true
fillerColor: "#E7E7E7",
backgroundColor: "#F4F4F4", //两边未选中的滑动条区域的颜色
showDataShadow: false, //是否显示数据阴影 默认auto
showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
realtime: true, //是否实时更新
filterMode: 'filter',
filterMode: "filter",
handleStyle: {
borderRadius: '20',
borderRadius: "20",
},
},
//下面这个属性是里面拖到
{
type: 'inside',
type: "inside",
show: true,
xAxisIndex: [0],
start: 0,//默认为1
end: 100,//默认为100
start: 0, //默认为1
end: 100, //默认为100
moveOnMouseWheel: false,
preventDefaultMouseMove: false,
},
......@@ -304,166 +436,168 @@
show: true,
lineStyle: {
width: 1,
color: 'rgba(8, 16, 24, 0.27)'
color: "rgba(8, 16, 24, 0.27)",
},
textStyle: {
color: '#fff',
fontSize: '10'
}
color: "#fff",
fontSize: "10",
},
},
axisLabel: {
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
type: 'category',
data: ['2018年', '2019年', '2020年', '2021年', '2022年'],
type: "category",
data: ["2018年", "2019年", "2020年", "2021年", "2022年"],
},
{
type: 'category',
type: "category",
show: false,
data: ['2018年', '2019年', '2020年', '2021年', '2022年']
}
data: ["2018年", "2019年", "2020年", "2021年", "2022年"],
},
],
yAxis: [{
name: '单位:MWh',
yAxis: [
{
name: "单位:MWh",
alignWithLabel: true,
"position": "left",
position: "left",
nameTextStyle: {
color: '#fff',
color: "#fff",
},
type: 'value',
type: "value",
splitLine: {
show: true,
lineStyle: {
type: 'dashed',//线的类型 虚线0
opacity: 0.2//透明度
type: "dashed", //线的类型 虚线0
opacity: 0.2, //透明度
},
},
axisTick: {
show: false
show: false,
},
axisLine: {
show: true,
lineStyle: {
width: 1,
color: 'rgba(8, 16, 24, 0.27)'
color: "rgba(8, 16, 24, 0.27)",
},
textStyle: {
color: '#fff',
fontSize: '10'
}
color: "#fff",
fontSize: "10",
},
},
axisLabel: {
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
}, {
name: '同比%',
},
},
{
name: "同比%",
nameTextStyle: {
color: '#fff',
align: 'left',
color: "#fff",
align: "left",
},
// nameLocation: 'end',
type: 'value',
position: 'right',
type: "value",
position: "right",
splitLine: { show: false },
axisLabel: {
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
},
}
],
grid: {
top: 30,
left: '1%',
right: '1%',
left: "1%",
right: "1%",
bottom: 20,
containLabel: true,
},
series: [
{
name: '当年用电量',
type: 'bar',
barWidth: '20%',
barMaxWidth: '24',
name: "当年用电量",
type: "bar",
barWidth: "20%",
barMaxWidth: "24",
yAxisIndex: 0,
data: [50, 110, 110, 210, 150],
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 1, color: 'rgba(63, 241, 217, 0.3)' },
{ offset: 0, color: 'rgba(63, 241, 217, 1)' },
])
{ offset: 1, color: "rgba(63, 241, 217, 0.3)" },
{ offset: 0, color: "rgba(63, 241, 217, 1)" },
]),
},
},
{
name: '去年用电量',
type: 'bar',
name: "去年用电量",
type: "bar",
yAxisIndex: 0,
barWidth: '20%',
barMaxWidth: '24',
barWidth: "20%",
barMaxWidth: "24",
data: [150, 90, 130, 80, 180],
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 1, color: 'rgba(0, 221, 255, 0.3)' },
{ offset: 0, color: 'rgba(0, 221, 255, 1)' },
])
{ offset: 1, color: "rgba(0, 221, 255, 0.3)" },
{ offset: 0, color: "rgba(0, 221, 255, 1)" },
]),
},
},
{
name: '同比',
type: 'line',
name: "同比",
type: "line",
data: [150, 90, 130, 80, 180],
symbol: 'circle',
symbol: "circle",
symbolSize: 8,
yAxisIndex: 1,
smooth: true,
itemStyle: {
normal: {
lineStyle: {
color: 'rgba(255, 100, 100, 1)',
color: "rgba(255, 100, 100, 1)",
},
color: "rgba(255, 255, 255, 1)",
},
color: 'rgba(255, 255, 255, 1)',
}
},
},
{
xAxisIndex: 1,
itemStyle: {
show: false,
color: 'transparent',
opacity: 0//透明度
color: "transparent",
opacity: 0, //透明度
},
showBackground: true,
data: [50, 110, 110, 210, 150],//这个数据无所谓,反正不显示,只要data的长度和另外两个一样长就行了
barWidth: '50%',
data: [50, 110, 110, 210, 150], //这个数据无所谓,反正不显示,只要data的长度和另外两个一样长就行了
barWidth: "50%",
backgroundStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: 'rgba(255, 255, 255, 0.05)' },
{ offset: 1, color: 'rgba(255, 255, 255, 0.05)' },
])
{ offset: 0, color: "rgba(255, 255, 255, 0.05)" },
{ offset: 1, color: "rgba(255, 255, 255, 0.05)" },
]),
},
z: 0,
tooltip: {
show: false,
trigger: 'axis',
type: 'none',
trigger: "axis",
type: "none",
},
type: 'bar'
}
]
type: "bar",
},
],
};
initEcharts("#repair-require", option);
};
initEcharts('#repair-require', option)
}
getEcharts();
const getEcharts2 = () => {
var option = {
tooltip: {
//提示框组件
trigger: 'axis',
trigger: "axis",
tooltip: {
trigger: "axis",
axisPointer: {
......@@ -472,11 +606,11 @@
},
},
grid: {
left: '1%',
right: '1%',
bottom: '6%',
left: "1%",
right: "1%",
bottom: "6%",
top: 30,
padding: '0 0 10 0',
padding: "0 0 10 0",
containLabel: true,
},
legend: {
......@@ -484,57 +618,69 @@
itemWidth: 14,
top: 0,
textStyle: {
color: "#fff"
color: "#fff",
},
},
dataZoom: [//给x轴设置滚动条
dataZoom: [
//给x轴设置滚动条
{
type: 'slider',//slider表示有滑动块的,inside表示内置的
type: "slider", //slider表示有滑动块的,inside表示内置的
// startValue: 8,//可用于设置开始显示的柱子的长度
// endValue: 1,//可用于设置结束显示的柱子的长度
start: 80,//默认为0 可设置滚动条从在后进行展示
end: 100,//默认为100
start: 80, //默认为0 可设置滚动条从在后进行展示
end: 100, //默认为100
show: true,
xAxisIndex: [0],
handleSize: 0,//滑动条的 左右2个滑动条的大小
height: 8,//组件高度
left: '10%', //左边的距离
right: '10%',//右边的距离
bottom: -2,//右边的距离
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 8, //组件高度
left: "10%", //左边的距离
right: "10%", //右边的距离
bottom: -2, //右边的距离
borderColor: "#F4F4F4",
fillerColor: '#E7E7E7',
backgroundColor: '#F4F4F4',//两边未选中的滑动条区域的颜色
showDataShadow: false,//是否显示数据阴影 默认auto
showDetail: false,//即拖拽时候是否显示详细数值信息 默认true
fillerColor: "#E7E7E7",
backgroundColor: "#F4F4F4", //两边未选中的滑动条区域的颜色
showDataShadow: false, //是否显示数据阴影 默认auto
showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
realtime: true, //是否实时更新
filterMode: 'filter',
filterMode: "filter",
handleStyle: {
borderRadius: '20',
borderRadius: "20",
},
},
//下面这个属性是里面拖到
{
type: 'inside',
type: "inside",
show: true,
xAxisIndex: [0],
start: 0,//默认为1
end: 100,//默认为100
start: 0, //默认为1
end: 100, //默认为100
moveOnMouseWheel: false,
preventDefaultMouseMove: false,
},
],
xAxis: [
{
type: 'category',
type: "category",
boundaryGap: true, //坐标轴两边留白
data: ['7:00', '8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '17:00', '8:00'],
data: [
"7:00",
"8:00",
"9:00",
"10:00",
"11:00",
"12:00",
"13:00",
"14:00",
"17:00",
"8:00",
],
axisLabel: {
//坐标轴刻度标签的相关设置。
interval: 0, //设置为 1,表示『隔一个标签显示一个标签』
margin: 15,
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
axisTick: {
//坐标轴刻度相关设置。
......@@ -543,8 +689,8 @@
axisLine: {
//坐标轴轴线相关设置
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
splitLine: {
//坐标轴在 grid 区域中的分隔线。
......@@ -554,17 +700,17 @@
],
yAxis: [
{
type: 'value',
type: "value",
nameTextStyle: {
color: '#fff',
color: "#fff",
},
name: '企业数',
position: 'left',
name: "企业数",
position: "left",
splitNumber: 5,
axisLabel: {
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
axisLine: {
show: false,
......@@ -575,23 +721,23 @@
splitLine: {
show: true,
lineStyle: {
color: ['#fff'],
color: ["#fff"],
opacity: 0.06,
},
},
},
{
type: 'value',
type: "value",
nameTextStyle: {
color: '#fff',
color: "#fff",
},
name: '用电量',
position: 'right',
name: "用电量",
position: "right",
splitNumber: 5,
axisLabel: {
textStyle: {
color: 'rgba(255, 255, 255, 1)',
}
color: "rgba(255, 255, 255, 1)",
},
},
axisLine: {
show: false,
......@@ -602,7 +748,7 @@
splitLine: {
show: true,
lineStyle: {
color: ['#fff'],
color: ["#fff"],
opacity: 0.06,
},
},
......@@ -610,14 +756,14 @@
],
series: [
{
name: '企业数',
name: "企业数",
yAxisIndex: 0,
type: 'pictorialBar', //设置类型为象形柱状图
symbol: 'roundRect', //图形类型,带圆角的矩形
type: "pictorialBar", //设置类型为象形柱状图
symbol: "roundRect", //图形类型,带圆角的矩形
symbolOffset: [-5, 0],
symbolMargin: '1', //图形垂直间隔
barWidth: '10%', //柱图宽度
barMaxWidth: '20%', //最大宽度
symbolMargin: "1", //图形垂直间隔
barWidth: "10%", //柱图宽度
barMaxWidth: "20%", //最大宽度
animationDelay: (dataIndex, params) => {
//每个图形动画持续时间
return params.index * 50;
......@@ -626,31 +772,31 @@
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgba(63, 241, 217, 0.20)',
color: "rgba(63, 241, 217, 0.20)",
},
{
offset: 1,
color: '#3FF1D9',
color: "#3FF1D9",
},
])
]),
},
z: 1,
barGap: 0, //柱间距离
symbolRepeat: true, //图形是否重复
symbolSize: [14, 5], //图形元素的尺寸
data: [9, 5, 4, 2, 9, 5, 4, 2, 10000, 5],
animationEasing: 'elasticOut', //动画效果
stack: '2',
animationEasing: "elasticOut", //动画效果
stack: "2",
},
{
name: '用电数',
name: "用电数",
yAxisIndex: 1,
type: 'pictorialBar', //设置类型为象形柱状图
symbol: 'roundRect', //图形类型,带圆角的矩形
barWidth: '10%', //柱图宽度
type: "pictorialBar", //设置类型为象形柱状图
symbol: "roundRect", //图形类型,带圆角的矩形
barWidth: "10%", //柱图宽度
symbolOffset: [5, 0],
barMaxWidth: '20%', //最大宽度
symbolMargin: '1', //图形垂直间隔
barMaxWidth: "20%", //最大宽度
symbolMargin: "1", //图形垂直间隔
animationDelay: (dataIndex, params) => {
//每个图形动画持续时间
return params.index * 50;
......@@ -659,30 +805,31 @@
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: '#7E4602',
color: "#7E4602",
},
{
offset: 1,
color: '#FF9615',
color: "#FF9615",
},
])
]),
},
z: 1,
barGap: 0, //柱间距离
symbolRepeat: true, //图形是否重复
symbolSize: [14, 5], //图形元素的尺寸
data: [2.9, 5, 4.4, 2.7, 5.7, 9, 5, 4, 2, 4],
animationEasing: 'elasticOut', //动画效果
stack: '1',
animationEasing: "elasticOut", //动画效果
stack: "1",
},
],
}; initEcharts('#distribution-charts', option)
}
getEcharts2()
};
initEcharts("#distribution-charts", option);
};
getEcharts2();
//用电结构
var chartDom9 = document.getElementById("repair-require9");
myChart9 = echarts.init(chartDom9)
myChart9 = echarts.init(chartDom9);
var option9;
option9 = {
tooltip: {
......@@ -691,7 +838,6 @@
legend: false,
color: ["#F68500", "#3FF1D9", "#FF6464", "#00DDFF"],
series: [
{
name: "",
type: "pie",
......@@ -699,7 +845,7 @@
hoverAnimation: false,
itemStyle: {
borderRadius: 10,
borderColor: '#202F41',
borderColor: "#202F41",
borderWidth: 3,
},
avoidLabelOverlap: false,
......@@ -730,7 +876,7 @@
//园区企业生产状态分析
var chartDom10 = document.getElementById("repair-require10");
myChart10 = echarts.init(chartDom10)
myChart10 = echarts.init(chartDom10);
var option10;
option10 = {
tooltip: {
......@@ -739,7 +885,6 @@
legend: false,
color: ["#5CB3FF", "#E86265", "#E9EFF2"],
series: [
{
name: "",
type: "pie",
......@@ -747,7 +892,7 @@
hoverAnimation: false,
itemStyle: {
borderRadius: 10,
borderColor: '#202F41',
borderColor: "#202F41",
borderWidth: 3,
},
avoidLabelOverlap: false,
......@@ -777,33 +922,33 @@
//企业生产工作制分析
var chartDom11 = document.getElementById("repair-require11");
myChart11 = echarts.init(chartDom11)
myChart11 = echarts.init(chartDom11);
var option11;
option11 = {
tooltip: {
trigger: 'axis',
trigger: "axis",
axisPointer: {
type: 'cross',
type: "cross",
crossStyle: {
color: '#999'
}
}
color: "#999",
},
},
},
legend: {
show: true,
textStyle: {
color: '#fff',
fontSize: 16
color: "#fff",
fontSize: 16,
},
itemHeight: 10,
itemWidth: 14,
},
xAxis: [
{
type: 'category',
data: ['非规律生产', '白天8小时工作制', '24小时工作制'],
type: "category",
data: ["非规律生产", "白天8小时工作制", "24小时工作制"],
axisPointer: {
type: 'shadow'
type: "shadow",
},
axisLabel: {
interval: 0,
......@@ -812,16 +957,17 @@
color: "#fff",
padding: [0, 0, 0, 0],
},
}
}
},
},
],
yAxis: [
{
type: 'value',
name: '企业数:个',
type: "value",
name: "企业数:个",
nameTextStyle: {
color: "#fff",
fontSize: 16, top: -10,
fontSize: 16,
top: -10,
},
min: 0,
max: 900,
......@@ -837,17 +983,17 @@
splitLine: {
show: true,
lineStyle: {
type: 'dashed',
color: '#354050'
}
}
type: "dashed",
color: "#354050",
},
},
},
{
type: 'value',
name: '用电量:KWh',
type: "value",
name: "用电量:KWh",
nameTextStyle: {
color: "#fff",
fontSize: 16
fontSize: 16,
},
min: 0,
max: 900,
......@@ -863,29 +1009,27 @@
splitLine: {
show: false,
lineStyle: {
type: 'dashed',
color: '#354050'
}
}
}
type: "dashed",
color: "#354050",
},
},
},
],
series: [
{
name: '企业数:个',
type: 'pictorialBar',
symbol: 'rect',
name: "企业数:个",
type: "pictorialBar",
symbol: "rect",
data: [
200, 400, 900,
],
symbolSize: ['55%', 10],
data: [200, 400, 900],
symbolSize: ["55%", 10],
symbolRepeat: true,
symbolMargin: 2,
barWidth: 40,
itemStyle: {
normal: {
color: {
type: 'liner',
type: "liner",
x: 1,
y: 0,
x2: 1,
......@@ -893,30 +1037,27 @@
colorStops: [
{
offset: 0,
color: '#FF9615', // 0% 处的颜色
color: "#FF9615", // 0% 处的颜色
},
{
offset: 1,
color: '#7E4602', // 100% 处的颜色
color: "#7E4602", // 100% 处的颜色
},
],
},
},
},
},
{
name: '用电量:KWh',
type: 'pictorialBar',
symbol: 'rect',
name: "用电量:KWh",
type: "pictorialBar",
symbol: "rect",
barGap: '1%',
barGap: "1%",
yAxisIndex: 1,
data: [
100, 300, 600
],
symbolSize: ['55%', 10],
data: [100, 300, 600],
symbolSize: ["55%", 10],
symbolRepeat: true,
symbolMargin: 2,
barWidth: 40,
......@@ -924,7 +1065,7 @@
itemStyle: {
normal: {
color: {
type: 'liner',
type: "liner",
x: 1,
y: 0,
x2: 1,
......@@ -932,22 +1073,472 @@
colorStops: [
{
offset: 0,
color: '#3FF1D9', // 0% 处的颜色
color: "#3FF1D9", // 0% 处的颜色
},
{
offset: 1,
color: '#0D332E', // 100% 处的颜色
color: "#0D332E", // 100% 处的颜色
},
],
},
},
},
},
]
],
};
option11 && myChart11.setOption(option11);
<!-- 分时段企业用电情况分析 -->
//尖峰平谷各时段,进行生产的企业月度平均数
const getBarEcharts = () => {
let option = {
grid: {
left: "3%",
right: "1%",
bottom: "3%",
containLabel: true,
},
xAxis: {
type: "category",
data: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24,
],
axisLabel: {
interval: 0,
textStyle: {
fontSize: 12,
color: "#fff",
},
},
axisTick: {
show: false,
},
axisLine: {
show: false,
},
},
yAxis: [
{
name: "企业数:个",
nameTextStyle: {
color: "#fff",
align: "center",
fontSize: 14,
},
type: "value",
axisLabel: {
textStyle: {
fontSize: 14,
color: "#fff",
fontWeight: 400,
},
},
},
],
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
},
legend: {
data: ["低谷时段", "平均时段", "高峰时段", "尖峰时段"],
x: "right",
y: "top",
itemWidth: 7,
itemHeight: 7,
textStyle: {
color: "#fff",
},
},
series: [
{
name: "低谷时段",
stack: "one",
data: [
10,
20,
10,
20,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(0,221,255,0.2)` },
{ offset: 1, color: "#00DDFF" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "平均时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
13,
14,
16,
10,
21,
12,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(63,241,217,0.2)` },
{ offset: 1, color: "#3FF1D9" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "高峰时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
24,
13,
12,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(246,133,0,0.2)` },
{ offset: 1, color: "#F68500" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "尖峰时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
11,
12,
13,
11,
11,
11,
11,
11,
11,
11,
11,
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(255,100,100,0.2)` },
{ offset: 1, color: "#FF6464" },
]),
},
barGap: "0%",
barWidth: 18,
},
],
};
initEcharts("#timePeriod-barCharts-1", option);
};
getBarEcharts();
//尖峰平谷各时段的企业用电量分析
const getBarEcharts3 = () => {
let option = {
grid: {
left: "3%",
right: "1%",
bottom: "3%",
containLabel: true,
},
xAxis: {
type: "category",
data: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24,
],
axisLabel: {
interval: 0,
textStyle: {
fontSize: 12,
color: "#fff",
},
},
axisTick: {
show: false,
},
axisLine: {
show: false,
},
},
yAxis: [
{
name: "企业数:个",
nameTextStyle: {
color: "#fff",
align: "center",
fontSize: 14,
},
type: "value",
axisLabel: {
textStyle: {
fontSize: 14,
color: "#fff",
fontWeight: 400,
},
},
},
],
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
},
legend: {
data: ["低谷时段", "平均时段", "高峰时段", "尖峰时段"],
x: "right",
y: "top",
itemWidth: 7,
itemHeight: 7,
textStyle: {
color: "#fff",
},
},
series: [
{
name: "低谷时段",
stack: "one",
data: [
10,
20,
10,
20,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(0,221,255,0.2)` },
{ offset: 1, color: "#00DDFF" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "平均时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
13,
14,
16,
10,
21,
12,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(63,241,217,0.2)` },
{ offset: 1, color: "#3FF1D9" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "高峰时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
24,
13,
12,
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(246,133,0,0.2)` },
{ offset: 1, color: "#F68500" },
]),
},
barGap: "0%",
barWidth: 18,
},
{
name: "尖峰时段",
stack: "one",
data: [
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
11,
12,
13,
11,
11,
11,
11,
11,
11,
11,
11,
],
type: "bar",
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: `rgba(255,100,100,0.2)` },
{ offset: 1, color: "#FF6464" },
]),
},
barGap: "0%",
barWidth: 18,
},
],
};
initEcharts("#timePeriod-barCharts-3", option);
};
getBarEcharts3();
window.onresize = function () {
myChart8.resize();
myChart9.resize();
......@@ -955,10 +1546,8 @@
myChart11.resize();
};
window.onresize = function () {
Object.values(myChart).forEach(chart => chart.resize())
Object.values(myChart).forEach((chart) => chart.resize());
};
}
</script>
};
</script>
</html>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论