|
|
@@ -64,7 +64,13 @@
|
|
|
margin-right: 5px;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
-
|
|
|
+ .circle-box-water {
|
|
|
+ width: 160px;
|
|
|
+ height: 155px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color:#92CE50;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
</style>
|
|
|
<body data-type="index">
|
|
|
|
|
|
@@ -365,7 +371,7 @@
|
|
|
<div class="am-u-md-9 am-u-sm-12 display-flex-between margin-top-10">
|
|
|
<div class="display-flex-start">
|
|
|
<img src="../assets/img/self/right.png" width="16px" height="15px" alt="" class="margin-right-10">
|
|
|
- <div class="font-size-15 bold">能耗总览</div>
|
|
|
+ <div class="font-size-15 bold">单项能耗分析(水)</div>
|
|
|
</div>
|
|
|
<div class="tpl-portlet-input tpl-fz-ml display-flex-start" id="time-box">
|
|
|
<div class="am-btn-group doc-js-btn-1" data-am-button style="margin-right: 10px;">
|
|
|
@@ -400,7 +406,7 @@
|
|
|
|
|
|
|
|
|
<div class="am-u-md-12 am-u-sm-12">
|
|
|
- <div class="am-u-md-9 am-u-sm-12 border-bottom-d7">
|
|
|
+ <div class="am-u-md-9 am-u-sm-12">
|
|
|
<div class="display-flex-start font-size-15">
|
|
|
<label>
|
|
|
<input type="radio" name="doc-radio-1" value="option1" checked>全部
|
|
|
@@ -450,93 +456,16 @@
|
|
|
<input type="radio" name="doc-radio-2" value="option6">其他建筑
|
|
|
</label>
|
|
|
</div>
|
|
|
- <div class="display-flex-wrap margin-top-20">
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6 padding-left-0">
|
|
|
- <div class="dashboard-stat blue height-120">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 用电 </div>
|
|
|
- <div class="number am-padding-top-0"> 3435807.00 </div>
|
|
|
- <div class="desc"> KW-h </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6">
|
|
|
- <div class="dashboard-stat blue height-120" style="background: #67C23A">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 用水 </div>
|
|
|
- <div class="number am-padding-top-0"> 26744.00 </div>
|
|
|
- <div class="desc"> m³ </div>
|
|
|
- </div>
|
|
|
- <!--<a class="more" href="#"> 查看更多-->
|
|
|
- <!--<i class="m-icon-swapright m-icon-white"></i>-->
|
|
|
- <!--</a>-->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6">
|
|
|
- <div class="dashboard-stat green height-120" style="background: #E6A23C">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 用气 </div>
|
|
|
- <div class="number am-padding-top-0"> 0.00 </div>
|
|
|
- <div class="desc"> m³ </div>
|
|
|
- </div>
|
|
|
- <!--<a class="more" href="#"> 查看更多-->
|
|
|
- <!--<i class="m-icon-swapright m-icon-white"></i>-->
|
|
|
- <!--</a>-->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6">
|
|
|
- <div class="dashboard-stat green height-120" style="background: #F56C6C">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 用油 </div>
|
|
|
- <div class="number am-padding-top-0"> 0.00 </div>
|
|
|
- <div class="desc"> L </div>
|
|
|
- </div>
|
|
|
- <!--<a class="more" href="#"> 查看更多-->
|
|
|
- <!--<i class="m-icon-swapright m-icon-white"></i>-->
|
|
|
- <!--</a>-->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6 padding-left-0">
|
|
|
- <div class="dashboard-stat green height-120" style="background: #33D6CC">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 单位面积用电 </div>
|
|
|
- <div class="number am-padding-top-0"> 142.58 </div>
|
|
|
- <div class="desc"> KW-h/㎡ </div>
|
|
|
- </div>
|
|
|
- <!--<a class="more" href="#"> 查看更多-->
|
|
|
- <!--<i class="m-icon-swapright m-icon-white"></i>-->
|
|
|
- <!--</a>-->
|
|
|
- </div>
|
|
|
+ <div class="margin-top-50 display-flex-start margin-bottom-35 border-bottom-d7 am-padding-bottom-lg">
|
|
|
+ <div class="circle-box-water display-flex-column items-center flex-space-evenly margin-right-30">
|
|
|
+ <div class="margin-top-35">总用水</div>
|
|
|
+ <div class="font-size-20 font-family-cur">6744.00</div>
|
|
|
+ <div class="margin-bottom-35">m³</div>
|
|
|
</div>
|
|
|
- <div class="am-u-lg-3 am-u-md-6 am-u-sm-6">
|
|
|
- <div class="dashboard-stat green height-120" style="background:#BCBEC2">
|
|
|
- <div class="visual">
|
|
|
- <i class="am-icon-bar-chart-o"></i>
|
|
|
- </div>
|
|
|
- <div class="details display-flex-column flex-space-evenly height-120">
|
|
|
- <div class="desc"> 碳排放 </div>
|
|
|
- <div class="number am-padding-top-0"> --.-- </div>
|
|
|
- <div class="desc"> Kgce </div>
|
|
|
- </div>
|
|
|
- <!--<a class="more" href="#"> 查看更多-->
|
|
|
- <!--<i class="m-icon-swapright m-icon-white"></i>-->
|
|
|
- <!--</a>-->
|
|
|
- </div>
|
|
|
+ <div class="circle-box-water display-flex-column items-center flex-space-evenly" style="background-color: #F2BA68">
|
|
|
+ <div class="margin-top-35">单位面积用水</div>
|
|
|
+ <div class="font-size-20 font-family-cur">40.26</div>
|
|
|
+ <div class="margin-bottom-35">m³/㎡</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -556,131 +485,105 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="am-u-md-12 am-u-sm-12 margin-top-20">
|
|
|
- <div class="am-u-md-9 am-u-sm-12">
|
|
|
- <div class="am-text-center">最近12个月能耗统计(环比分析)</div>
|
|
|
- <table class="width-100 pageTable margin-top-10">
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL width-15">月份</td>
|
|
|
- <td class="width-15">总用电</td>
|
|
|
- <td class="width-15">单位面积用电</td>
|
|
|
- <td class="width-15">用水</td>
|
|
|
- <td class="width-15">用气</td>
|
|
|
- <td class="width-15">用油</td>
|
|
|
- <td class="width-15">碳排放</td>
|
|
|
- </tr>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年3月</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <div class="am-u-md-12 am-u-sm-12">
|
|
|
+ <div class="am-u-md-9 am-u-sm-12 border-bottom-d7" style="height: 385px">
|
|
|
+ <div class="display-flex-start font-size-15 radio-box" style="left:30%;top:45px">
|
|
|
+ <label>
|
|
|
+ <input type="radio" name="doc-radio-1" value="option1" checked>总用电
|
|
|
+ </label>
|
|
|
+ <label>
|
|
|
+ <input type="radio" name="doc-radio-1" value="option2">照明及插座用电
|
|
|
+ </label>
|
|
|
+ <label>
|
|
|
+ <input type="radio" name="doc-radio-1" value="option3">空调用电
|
|
|
+ </label>
|
|
|
+ <label>
|
|
|
+ <input type="radio" name="doc-radio-1" value="option4">动力用电
|
|
|
+ </label>
|
|
|
+ <label>
|
|
|
+ <input type="radio" name="doc-radio-1" value="option5">特殊用电
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="tpl-echarts pie-chart-box" id="chart-line">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="am-u-md-3 am-u-sm-12">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="am-u-md-12 am-u-sm-12 margin-top-20">
|
|
|
<div class="am-u-md-9 am-u-sm-12">
|
|
|
- <div class="am-text-center">最近3年能耗统计(环比分析)</div>
|
|
|
- <table class="width-100 pageTable margin-top-10">
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL width-15">年度</td>
|
|
|
- <td class="width-15">总用电</td>
|
|
|
- <td class="width-15">单位面积用电</td>
|
|
|
- <td class="width-15">用水</td>
|
|
|
- <td class="width-15">用气</td>
|
|
|
- <td class="width-15">用油</td>
|
|
|
- <td class="width-15">碳排放</td>
|
|
|
- </tr>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2022年</td>
|
|
|
- <td>23604</td>
|
|
|
- <td>142.58</td>
|
|
|
- <td>6744</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>0.00</td>
|
|
|
- <td>--.--</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2021年</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="table-td-highL">2020年</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <div class="am-text-center">用水情况统计(环比分析)</div>
|
|
|
+ <div class="am-u-md-6 am-u-sm-12">
|
|
|
+ <table class="width-100 pageTable margin-top-10">
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL width-15">月份</td>
|
|
|
+ <td class="width-15">总用水量</td>
|
|
|
+ <td class="width-15">单位面积用水</td>
|
|
|
+ </tr>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年3月</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="am-u-md-6 am-u-sm-12">
|
|
|
+ <table class="width-100 pageTable margin-top-10">
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL width-15">年度</td>
|
|
|
+ <td class="width-15">总用电</td>
|
|
|
+ <td class="width-15">单位面积用电</td>
|
|
|
+ </tr>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2022年</td>
|
|
|
+ <td>23604</td>
|
|
|
+ <td>142.58</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2021年</td>
|
|
|
+ <td></td>
|
|
|
+ <td></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="table-td-highL">2020年</td>
|
|
|
+ <td></td>
|
|
|
+ <td></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="am-u-md-3 am-u-sm-12">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
@@ -689,134 +592,129 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
- let chartDomPie = document.getElementById('chart-pie');
|
|
|
- let chartDomBar = document.getElementById('chart-bar');
|
|
|
- let myChartPie = echarts.init(chartDomPie);
|
|
|
- let myChartBar = echarts.init(chartDomBar);
|
|
|
- let optionBar , optionPie;
|
|
|
- optionPie = {
|
|
|
+ let optionLine;
|
|
|
+ let chartDomLine = document.getElementById('chart-line');
|
|
|
+ let myChartLine = echarts.init(chartDomLine);
|
|
|
+ optionLine = {
|
|
|
title: {
|
|
|
- text: '辖区项目统计',
|
|
|
- // subtext: 'Fake Data',
|
|
|
- left: '50%'
|
|
|
+ text: '用水趋势分析',
|
|
|
+ left: '45%',
|
|
|
},
|
|
|
tooltip: {
|
|
|
- trigger: 'item',
|
|
|
- formatter: '{b} : {c} ({d}%)'
|
|
|
+ trigger: 'axis'
|
|
|
},
|
|
|
- legend: {
|
|
|
- orient: 'vertical',
|
|
|
- bottom:'30%',
|
|
|
- right:'15%',
|
|
|
- data: ['空港新城', '沣东新城', '秦汉新城', '沣西新城', '泾河新城', '能源金融贸易区']
|
|
|
+ grid: {
|
|
|
+ left: '5%',
|
|
|
+ right: '15%',
|
|
|
+ top:'25%'
|
|
|
},
|
|
|
- color:['#45C2E0', '#C1EBDD', '#FFC851','#5A5476','#1869A0','#FF9393'],
|
|
|
- series: [
|
|
|
- {
|
|
|
- type: 'pie',
|
|
|
- radius: '65%',
|
|
|
- center: ['40%', '50%'],
|
|
|
- selectedMode: 'single',
|
|
|
- data: [
|
|
|
- { value: 735, name: '空港新城' },
|
|
|
- { value: 510, name: '沣东新城' },
|
|
|
- { value: 434, name: '秦汉新城' },
|
|
|
- { value: 335, name: '沣西新城' },
|
|
|
- { value: 1548,name: '泾河新城' },
|
|
|
- { value: 1548,name: '能源金融贸易区' },
|
|
|
- ],
|
|
|
- itemStyle:{
|
|
|
- normal:{
|
|
|
- label:{
|
|
|
- show: true,
|
|
|
- formatter: '{b} : {c} ({d}%)',
|
|
|
- //formatter: '{c}',
|
|
|
- },
|
|
|
- labelLine :{show:true}
|
|
|
- }
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- itemStyle: {
|
|
|
- shadowBlur: 10,
|
|
|
- shadowOffsetX: 0,
|
|
|
- shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- optionPie && myChartPie.setOption(optionPie);
|
|
|
- optionBar = {
|
|
|
- title: {
|
|
|
- text: '建筑类别统计',
|
|
|
- // subtext: 'Fake Data',
|
|
|
- left:'50%',
|
|
|
+ xAxis: {
|
|
|
+ data:[],
|
|
|
+ show:false
|
|
|
},
|
|
|
- tooltip: {
|
|
|
- trigger: 'item',
|
|
|
- formatter: '{b} : {c}'
|
|
|
+ yAxis: {
|
|
|
+ axisLine:{
|
|
|
+ show:false
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show:false
|
|
|
+ },
|
|
|
+ splitLine:{
|
|
|
+ show:false
|
|
|
+ }
|
|
|
+ // show:false
|
|
|
},
|
|
|
- // tooltip: {
|
|
|
- // trigger: 'axis',
|
|
|
- // axisPointer: {
|
|
|
- // type: 'shadow'
|
|
|
- // }
|
|
|
- // },
|
|
|
- grid: {
|
|
|
- left: '3%',
|
|
|
- right: '4%',
|
|
|
- bottom: '1%',
|
|
|
- top:'20%',
|
|
|
- containLabel: true
|
|
|
+ toolbox: {
|
|
|
+ right: 10,
|
|
|
+ feature: {
|
|
|
+ dataZoom: {
|
|
|
+ yAxisIndex: 'none'
|
|
|
+ },
|
|
|
+ restore: {},
|
|
|
+ saveAsImage: {}
|
|
|
+ },
|
|
|
+ show:false
|
|
|
},
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: 'category',
|
|
|
- data: ['办公建筑', '商场建筑', '宾馆饭店建筑', '文化教育建筑', '医疗卫生建筑', '体育建筑', '综合建筑','其他建筑'],
|
|
|
- axisTick: {
|
|
|
- alignWithLabel: true
|
|
|
+ // dataZoom: [
|
|
|
+ // {
|
|
|
+ // startValue: '2014-06-01'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // type: 'inside'
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ visualMap: {
|
|
|
+ top: 50,
|
|
|
+ right: 20,
|
|
|
+ //show:false,
|
|
|
+ show:true,
|
|
|
+ pieces: [
|
|
|
+ {
|
|
|
+ gt: 0,
|
|
|
+ lte: 50,
|
|
|
+ color: '#93CE07'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ gt: 50,
|
|
|
+ lte: 100,
|
|
|
+ color: '#FBDB0F'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ gt: 100,
|
|
|
+ lte: 150,
|
|
|
+ color: '#FC7D02'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ gt: 150,
|
|
|
+ lte: 200,
|
|
|
+ color: '#FD0100'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ gt: 200,
|
|
|
+ lte: 300,
|
|
|
+ color: '#AA069F'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ gt: 300,
|
|
|
+ color: '#AC3B2A'
|
|
|
}
|
|
|
+ ],
|
|
|
+ outOfRange: {
|
|
|
+ color: '#999'
|
|
|
}
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: 'value'
|
|
|
- }
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name: 'Direct',
|
|
|
- type: 'bar',
|
|
|
- barWidth: '25%',
|
|
|
- data: [1388, 420, 1026, 164, 77, 54, 853,39],
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- //这里是重点
|
|
|
- color: function(params) {
|
|
|
- //注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
|
|
|
- //var colorList = ['#74A0FA','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622'];
|
|
|
- let colorList = ['#74A0FA'];
|
|
|
- return colorList[params.dataIndex]
|
|
|
- },
|
|
|
- label: {
|
|
|
- show: true,
|
|
|
- position: 'top',
|
|
|
- textStyle: {
|
|
|
- color: '#555'
|
|
|
- },
|
|
|
- formatter:function(params){
|
|
|
- return params.value;
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ series: {
|
|
|
+ // name: 'Beijing AQI',
|
|
|
+ type: 'line',
|
|
|
+ data:[116,129,135,86,73,68,92,130,245,139,115,111,309,206,137,128,85,94,71],
|
|
|
+ markLine: {
|
|
|
+ silent: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: '#333'
|
|
|
+ },
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ yAxis: 50
|
|
|
+ },
|
|
|
+ {
|
|
|
+ yAxis: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ yAxis: 150
|
|
|
+ },
|
|
|
+ {
|
|
|
+ yAxis: 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ yAxis: 300
|
|
|
}
|
|
|
- }
|
|
|
+ ]
|
|
|
}
|
|
|
- ]
|
|
|
+ }
|
|
|
};
|
|
|
- optionBar && myChartBar.setOption(optionBar);
|
|
|
+ optionLine && myChartLine.setOption(optionLine);
|
|
|
window.addEventListener("resize",()=>{
|
|
|
- myChartPie.resize();
|
|
|
- myChartBar.resize();
|
|
|
+ myChartLine.resize();
|
|
|
});
|
|
|
</script>
|
|
|
<script src="../assets/js/jquery-2.1.1.js"></script>
|