基于Echarts+HTML5可視化數據大屏展示-茶園大數據平臺指揮艙

效果展示:
在這里插入圖片描述
代碼結構:
在這里插入圖片描述
主要代碼實現
index.html布局

<!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"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><title>茶園大數據平臺指揮艙</title><link rel="stylesheet" href="css/reset.css"><link href="https://cdn.bootcdn.net/ajax/libs/video.js/5.15.0/video-js.css" rel="stylesheet"><script src="https://cdn.bootcdn.net/ajax/libs/video.js/5.15.0/video.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.15.0/videojs-contrib-hls.min.js" type="text/javascript"></script>
</head>
<style>.boxRader {position: relative;width: 100%;height: 80%;}.centerBox {width: 75%;margin-right: 15px;background: transparent;}.boxFont {font-size: 1.2vw;}.centerMainBox1 {width: 100%;height: 60.5%;}.centerMainBox2 {width: 100%;height: 38.5%;position: relative;margin-top: 15px;}.centerMainBox2 img {position: absolute;width: 100%;height: 100%;}.boxTitle2 {width: 100%;height: 10%;font-size: .6vw;text-align: center;line-height: 10%;margin-top: 1vw;color: #0efcff;}.boxLis {width: 70%;height: 1.5vw;margin-left: 3vw;margin-top: 1vw;border-bottom: .02vw solid rgb(40, 229, 233);}.boxLis>li {width: 4vw;height: 1.4vw;display: block;background: rgba(40, 229, 233, .5);margin-right: .5vw;color: #fff;line-height: 1.4vw;text-align: center;cursor: pointer;}.active {border-bottom: .02vw solid #040A18;border-top: .02vw solid rgb(40, 229, 233);border-right: .02vw solid rgb(40, 229, 233);border-left: .02vw solid rgb(40, 229, 233);}.contList {position: relative;width: 70%;height: 7vw;margin: 1vw auto 0;}.content1 li {display: none;}.baseBox {width: 100%;border: none;background: none;}.boxTitle {font-size: .8vw;width: 38%;margin-top: 1vw;text-align: center;}.right {float: right;}.baseBoxLeft {width: 30%;height: 95%;position: relative;}.baseBoxRight {width: 68%;height: 75%;}.baseBoxLeft img {width: 100%;height: 100%;position: absolute;top: 0;left: 0;}.maps {width: 100%;height: 95%;margin-top: 2%;background: pink;}.baseBox1,.baseBox2,.baseBox3 {position: relative;}.baseBox1 img,.baseBox2 img,.baseBox3 img {position: absolute;width: 100%;height: 100%;}.csbaseBox1 {position: relative;z-index: 999;}
</style>
<!-- 黃瑤 -->
<style>.liSpan {width: 100%;margin-top: 3.2%;text-align: center;color: rgb(40, 229, 233);}.liP {width: 66%;margin: .3vw auto 0;text-align: left;font-size: .5vw;color: rgb(40, 229, 233);}a:hover {text-decoration: none}.titleName {color: #0EFCFF;}/* 種植 */.plant {width: 90%;height: 5.5vw;margin: 2% auto 0;display: -webkit-flex;display: -moz-flex;-webkit-justify-content: space-between;-moz-justify-content: space-between;}.plant>li {width: 15%;height: 100%;}.jumps {width: 100%;height: 100%;background: rgba(0, 235, 255, .08);display: -webkit-flex;-webkit-flex-direction: column;-webkit-justify-content: space-between;display: -moz-flex;-moz-flex-direction: column;-moz-justify-content: space-between;}.jumps>div>img {width: .88vw;height: .88vw;float: right;}.jumps>p {width: 90%;font-size: 1.3vw;color: #fff;margin: auto;}.jumps>div {width: 90%;margin: 5% auto 0;}.jumps>div>span {font-size: .6vw;color: #0efcff;float: left;}.spans0 {width: 80%;height: 5%;background: #03DA8D;}.spans1 {width: 80%;height: 5%;background: #0efcff;}.spans2 {width: 80%;height: 5%;background: #FE0000;}.spans3 {width: 80%;height: 5%;background: #F78001;}.boxVideo {width: 100%;height: 100%;}.boxVideo video {width: 100%;height: 100%;}.baseDatas {width: 70%;height: 2vw;display: -webkit-flex;-webkit-justify-content: space-between;margin: 1vw 0 0 5vw;}.baseDatas li {width: 10%;}.baseDatas li a {color: #fff;font-size: .8vw;}.active2 a>span {color: rgb(40, 229, 233);}.baseDatas li a:hover>span {color: rgb(40, 229, 233);}.baseDatas li a:hover>.borderRight {border-left-color: rgb(40, 229, 233);}.tableDetalis {width: 92%;color: #fff;margin-left: 2vw;}.tableDetalis tr {height: 1.3vw;font-size: .8vw;}.tableDetalis tr>td {text-align: center;}.tableDetalis tr>td:nth-child(7) {text-align: right;}.borderRight {width: 0;height: 0;float: left;border: .4vw solid transparent;border-left-color: #fff;margin-top: .2vw;}.borderActive {border-left-color: rgb(40, 229, 233);}.equipment_table {width: 85%;height: 25%;margin: auto;text-align: center;color: #fff;font-size: .5vw;}.equipment_table tr:nth-child(1) {color: #0EFCFF;}.equipment_table tr {border: 1px solid#0EFCFF;}.equipment_table tr:nth-child(1) {font-size: .8vw;}.equipment_table img {width: 1vw;}.env_table {height: 35%;margin-top: 5%;}.env_table td {border: 1px solid#0EFCFF;}.env_table tr:nth-child(1) {background: rgba(14, 252, 255, .3);}.map img {width: 80%;margin-left: 10%;}.map img {width: 80%;margin-left: 10%;}.mapActived1 {position: absolute;top: 41.5%;left: 61%;width: 3.5vw;height: 5.5vw;border-radius: 90px;cursor: pointer;}.mapActived2 {position: absolute;top: 60%;right: 16%;width: 4.5vw;height: 2.5vw;cursor: pointer;}.mapActived3 {position: absolute;top: 57%;right: 9%;width: 2.5vw;height: 7vw;cursor: pointer;}.mapContent1 {position: absolute;height: 6vw;width: 8vw;left: 65%;top: 33%;background: rgba(255, 255, 255, .2);}.mapContent2 {position: absolute;height: 6vw;width: 8vw;left: 70%;top: 35%;background: rgba(255, 255, 255, .2);display: none;}.mapContent3 {position: absolute;height: 6vw;width: 8vw;right: 1%;top: 35%;background: rgba(255, 255, 255, .2);display: none;}.mapContentFont {width: 85%;margin-left: 12%;font-size: .6vw;color: #0efcff;letter-spacing: .05vw;margin-bottom: .3vw;}.mapContentFont:nth-child(1) {margin-top: .6vw;}.mapContentFont span {color: white;}/* lafite video樣式 */.video-js {width: 100%;height: 100%;}.video-js:hover .vjs-big-play-button {background: none;}.video-js .vjs-big-play-button:hover {background: none;}.video-js .vjs-big-play-button {border: none;background: none;}
</style><body><div class="main"><div class="nav">黃山茶園大數據平臺指揮艙</div><div class="nav_btn"><div class="btn_left"><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list listActive">系統首頁</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">生長檢測</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">數據分析</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">人工智能</div></a></div><div class="btn_right"><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">生產加工</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">倉儲管理</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">流通銷售</div></a><a href="https://gitee.com/iGaoWei/big-data-view"><div class="btn_list">數據中心</div></a></div></div><div class="content"><div class="centerBox"><div class="baseBox centerMainBox1" style="height:70%"><div class="baseBoxLeft left"><div class="boxTitle">氣象數據監測</div><img src="./img/left.png" alt=""><table class="equipment_table env_table"><tr><td>指標</td><td>標準值</td><td>當前值</td><td>預警</td></tr><tr><td>溫度</td><td>18~20℃</td><td>9℃</td><td>正常</td></tr><tr><td>濕度</td><td>40%~60%</td><td>52%</td><td>正常</td></tr><tr><td>風速</td><td>0m/s~4m/s</td><td>2m/s</td><td>正常</td></tr><tr><td>降水</td><td>2mm~4mm</td><td>0mm</td><td style="color:red">偏低</td></tr></table><div style="width:95%;height:50%;margin-left:2.5%" id="wind"></div></div><div class="baseBoxRight right"><ul class="plant"><li><a class="jumps" href=""><div><span>茶園種植面積(畝)</span><img src="./img/qqzmj.png" alt=""></div><p class="">350000</p><span class="spans3"></span></a></li><li><a class="jumps" href=""><div><span>產值(億元)</span><img src="./img/ccc2.png" alt=""></div><p class="">180</p><span class="spans2" style="background: #499BFF;"></span></a></li><li><a class="jumps" href=""><div><span>產量(噸)</span><img src="./img/ccc.png" alt=""></div><p class="">82000</p><span class="spans3" style="background: #F2CE43;"></span></a></li><li><a class="jumps" href="./teaGarden.html"><div class="clear plantTop "><span class="flexLeft">茶園(個)</span><img class="flexright" src="./img/cy.png" alt=""></div><p class=" plantNum1">3207</p><span class="spans0"></span></a></li><li><a class="jumps" href="./Tea-enterprises.html"><div class="clear plantTop "><span class="flexLeft">茶企(個)</span><img class="flexright" src="./img/cq.png" alt=""></div><p class=" plantNum1">157</p><span class="spans1"></span></a></li><li><a class="jumps" href="./teaPeasant.html"><div><span>茶農(人)</span><img src="./img/cn.png" alt=""></div><p class="">360000</p><span class="spans2"></span></a></li></ul><!-- 地圖 --><div class="map"><img class="mapImg" src="./img/map1.png"><div class="mapContent1"><div class="mapContentFont">田莊鄉</div><div class="mapContentFont">茶園:<span>101</span></div><div class="mapContentFont">茶企:<span>10</span></div><div class="mapContentFont">茶農:<span>18371</span></div></div><a class="mapActived1" href="https://gitee.com/iGaoWei/big-data-view"></a><a class="mapActived3" href="https://gitee.com/iGaoWei/big-data-view"></a></div></div></div><div class="baseBox centerMainBox2" style="height:30%;"><img src="./img/down.png" alt=""><div class="boxTitle2" style="width:26%">統計數據</div><div class="csbaseBox1"><ul class="baseDatas"><li class="left "><a href="https://gitee.com/iGaoWei/big-data-view" style="color: #0efcff"><div class="borderRight "></div><span>茶園統計</span></a></li><li class="left"><a href="https://gitee.com/iGaoWei/big-data-view" style="color: #0efcff"><div class="borderRight "></div><span>茶企統計</span></a></li><li class="left"><a href="https://gitee.com/iGaoWei/big-data-view" style="color: #0efcff"><div class="borderRight "></div><span>茶農統計</span></a></li></ul><table class="tableDetalis" style="color: #00ddfe"><tr><td>名稱</td><td>類型</td><td>面積</td><td>名稱</td><td>類型</td><td>面積</td><td>姓名&nbsp&nbsp</td><td>品種</td><td>面積</td></tr><tr><td>青云觀茶園</td><td>企業</td><td>1800畝</td><td>XXX</td><td>私營</td><td>3283畝</td><td>劉新武</td><td>云臺大葉</td><td>10畝</td></tr><tr><td>彩云谷茶園 </td><td>企業</td><td>380畝</td><td>XXX</td><td>私營</td><td>6200畝</td><td>張方</td><td>碧香早</td><td>15畝</td></tr><tr><td>趙家坪茶園</td><td>合作社</td><td>510畝</td><td>XXX</td><td>私營</td><td>5800畝</td><td>李小維</td><td>櫧葉齊</td><td>12畝</td></tr><tr><td>馬路口茶園</td><td>個人</td><td>17畝</td><td>XXX</td><td>私營</td><td>30000畝</td><td>王驍驍</td><td>黃金茶</td><td>11畝</td></tr></table></div></div></div><div class="leftBox right" style="width:22%"><div class="baseBox baseBox1" style="margin-bottom:15px;height:40%"><img src="./img/right.png" alt=""><div class="csbaseBox1"><div class="boxTitle">視頻監控設備</div><ul class="boxLis"><li class="left active">茶園監控</li><li class="left">生產車間監控</li><li class="left">倉儲監控</li></ul><div class="content1"><ul><li style="display: block;" class="contList"><!-- 四個角描邊 stat --><div class="leftTopLine1"></div><div class="leftTopLine2"></div><div class="rightTopLine1"></div><div class="rightTopLine2"></div><div class="leftBottomLine1"></div><div class="leftBottomLine2"></div><div class="rightBottomLine1"></div><div class="rightBottomLine2"></div><div class="boxVideo"><video class="video-js vjs-big-play-centered" data-setup='{}' controls><source src="http://hls01open.ys7.com/openlive/ea2001c1aec344d1ac45d8b0bbc74e87.m3u8" type="application/x-mpegURL"></video></div></li><li class="contList"><!-- 四個角描邊 stat --><div class="leftTopLine1"></div><div class="leftTopLine2"></div><div class="rightTopLine1"></div><div class="rightTopLine2"></div><div class="leftBottomLine1"></div><div class="leftBottomLine2"></div><div class="rightBottomLine1"></div><div class="rightBottomLine2"></div><div class="boxVideo"><video class="video-js vjs-big-play-centered" data-setup='{}' controls><source src="http://hls01open.ys7.com/openlive/cf40f99cc9cb4a23bd52e0b2119b534c.m3u8" type="application/x-mpegURL"></video></div></li><li class="contList"><!-- 四個角描邊 stat --><div class="leftTopLine1"></div><div class="leftTopLine2"></div><div class="rightTopLine1"></div><div class="rightTopLine2"></div><div class="leftBottomLine1"></div><div class="leftBottomLine2"></div><div class="rightBottomLine1"></div><div class="rightBottomLine2"></div><div class="boxVideo"><videosrc="#"controls="controls">your browser does not support the video tag</video></div></li></ul></div><div class="liSpan">介紹</div><p class="liP">茶園環境遠程監控物聯網系統能夠支持客戶端訪問方式提供遠程監測與控制管理</p></div></div><div class="baseBox baseBox2" style="margin-bottom:15px;height:29.5%"><img src="./img/right2.png" alt=""><!-- 四個角描邊 end --><div class="boxTitle2">種植品種分析</div><div class="boxRader" id="Progress"></div></div><div class="baseBox baseBox3" style="height:28.9%"><img src="./img/right3.png" alt=""><!-- 四個角描邊 end --><div class="boxTitle2">茶葉銷量分析</div><div class="boxRader" id="mains"></div></div></div></div></div>
</body></html>
<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.0.0-beta.2/echarts.min.js"></script>
<script src="js/dataScoll.js"></script>
<script>// 地圖hover事件function HoverFn() {$('.mapActived1').hover(function () {$(".mapImg").attr("src", "./img/map1.png");$(".mapContent1,.mapContent2,.mapContent3").hide();$(".mapContent1").slideDown(500);}, function () {});}HoverFn()
</script>
<script>$('.boxLis').on('mouseenter', 'li', function () {var that = $(this);that.addClass('active').siblings().removeClass('active');$('.content1 .contList').hide();console.log($('.content1 li'))$('.content1 .contList').eq(that.index()).show()})
</script>
<script>var HYChart1 = echarts.init(document.getElementById('wind'));var HYChart2 = echarts.init(document.getElementById('Progress'));var HYChart3 = echarts.init(document.getElementById('mains'));/*** times:YYYY-mm-dd HHMMSS* timeData:時間* windsData:風速* windxData:風向/等級* temData:溫度* ,rainData:降水* humData:濕度*/let Data = {times: ["2019-10-28 11:00:00", "2019-10-28 12:00:00", "2019-10-28 13:00:00", "2019-10-28 14:00:00", "2019-10-28 15:00:00", "2019-10-28 16:00:00", "2019-10-28 17:00:00", "2019-10-28 18:00:00", "2019-10-28 19:00:00", "2019-10-28 20:00:00", "2019-10-28 21:00:00", "2019-10-28 22:00:00"],timeData: ["08/00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"],windxData: ["東南", "北", "東南", "東", "東南", "東南", "西", "北", "南", "東南", "東南", "東南"],windsData: ["2.8/2", "1.4/1", "2.7/2", "3/2", "2.2/2", "1.4/1", "1.5/1", "1.9/2", "1.4/1", "1.8/2", "2/2", "3.4/3"],temData: [9, 11, 13, 12, 11, 9, 9, 7, 6, 4, 3, 3],rainData: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],humData: [76, 76, 70, 62, 58, 53, 50, 49, 46, 44, 44, 42],}function windDen(wind) {switch (wind) {case '北': return 'n';case '東北': return 'ne';case '東': return 'e';case '東南': return 'se';case '南': return 's';case '西南': return 'sw';case '西': return 'w';case '西北': return 'nw';default: return ''}}let colors = ['#FF6863', '#6EAB40', '#3BB5F5'];option = {color: colors,tooltip: {trigger: 'axis',axisPointer: { type: 'cross' },formatter: function (params, ticket, callback) {let index = params[0].dataIndex;let Htm = `${Data.times[index]}<br>溫度:${Data.temData[index]}℃<br>降水:${Data.rainData[index]}mm<br>風力:${Data.windsData[index].split('/')[0]}m/s ${Data.windsData[index].split('/')[1]}級風 ${Data.windxData[index]}<br>濕度:${Data.humData[index]}%`return Htm;}},grid: {top: '17%',bottom: '30%',left: '25%',right: '10%'},dataZoom: {bottom: '14%',height: '30',dataBackground: {lineStyle: { color: '#39977D' },areaStyle: { color: 'rgba(57,151,125,1)' }},borderColor: 'rgba(57,151,125,0)',textStyle: { color: '#39977D' },start: 0,end: 100,xAxisIndex: [0, 1, 2, 3]},xAxis: [{name: '風力等級',type: 'category',position: 'bottom',offset: 8,axisTick: { show: false },axisLine: { show: false },axisLabel: {show: true,textStyle: {color: '#fff',fontSize: 10,backgroundColor: 'transparent',lineHeight: 20,padding: [3, 3]},interval: 0},nameTextStyle: { color: '#585858', padding: [0, 0, -53] },nameLocation: 'start',data: Data.windsData},{name: '風向',type: 'category',position: 'bottom',offset: 40,axisTick: { show: false },axisLine: { show: false },axisLabel: {show: true,textStyle: { color: '#fff', fontSize: 10, lineHeight: 20 },interval: 0,formatter: (value) => {return '{' + windDen(value) + '| }' + value + '';},rich: {value: {lineHeight: 16,align: 'left'},n: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915257914-d2XE-l1Xe.png`}},ne: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915419689-EqosRMRlP.png`}},e: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915374565-sE5G5rXU6.png`}},se: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915457742-e5gWU0sT0.png`}},s: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915473589-TN5oJTIdv.png`}},sw: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915498319-h9PscokI2.png`}},w: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915523655-sI1HtlidH.png`}},nw: {height: 16,align: 'left',backgroundColor: {image: `/asset/get/s/data-1567915566043-E6t1OVpNh.png`}}}},nameTextStyle: { color: '#585858', padding: [0, 0, -38] },nameLocation: 'start',data: Data.windxData},{type: 'category',axisLine: { show: false },},{type: 'category',position: 'bottom',offset: 80,axisTick: { alignWithLabel: true, textStyle: { color: '#707070' } },data: Data.timeData}],yAxis: [{type: 'value',name: '溫度(°C)',scale: true,position: 'left',offset: 54,axisTick: { lineStyle: { color: colors[0] }, inside: true },nameTextStyle: { color: colors[0] },axisLabel: { color: colors[0] },splitLine: { show: false }},{type: 'value',name: '降水(mm)',position: 'left',axisTick: { lineStyle: { color: colors[1] }, inside: true },nameTextStyle: { color: colors[1] },axisLabel: { color: colors[1] },splitLine: { show: false }},{type: 'value',name: '相對濕度(%)',scale: true,position: 'right',axisTick: { lineStyle: { color: colors[2] }, inside: true },nameTextStyle: { color: colors[2] },axisLabel: { color: colors[2] },splitLine: { show: false }}],series: [{name: '溫度',type: 'line',step: false,label: { normal: { show: true, position: 'top' } },data: Data.temData},{name: '降水',type: 'bar',yAxisIndex: 1,color: '#bee6b2',barWidth: '50%',label: { normal: { show: true, position: 'top' } },data: Data.rainData},{name: '相對濕度',type: 'line',step: false,yAxisIndex: 2,color: colors[2],label: { normal: { show: true, position: 'top' } },data: Data.humData}]};// 進度條var baifenbi = [63000, 153210, 37210, 43780].reverse();var grayBar = [1, 1, 1, 1,];var zongjine = [500, 500, 500, 500];var xingm = ['云臺大葉', '櫧葉齊', '碧香早', '黃金茶'].reverse();// console.log(xingm.reverse())option2 = {tooltip: {trigger: 'axis'},grid: {left: '30%',right: '5%',top: '0%',bottom: '0%',},backgroundColor: 'transparent',xAxis: [{show: false,},//由于下邊X軸已經是百分比刻度了,所以需要在頂部加一個X軸,刻度是金額,也隱藏掉{show: false,}],yAxis: {type: 'category',axisLabel: {show: false, //讓Y軸數據不顯示},itemStyle: {},axisTick: {show: false, //隱藏Y軸刻度},axisLine: {show: false, //隱藏Y軸線段},data: xingm,},series: [//背景色--------------------我是分割線君------------------------------//{show: true,type: 'bar',barGap: '-100%',barWidth: '40%', //統計條寬度 itemStyle: {normal: {color: '#3B4254'},},z: 1,// data: grayBar,},//藍條--------------------我是分割線君------------------------------//{show: true,type: 'bar',barGap: '-100%',barWidth: '40%', //統計條寬度itemStyle: {color: function (params) {var colorList = ['#0EFCFF', '#1AC5CC', '#288E9A', '#FA8100', '#C06F18'].reverse();return colorList[params.dataIndex]},},max: 1,label: {normal: {show: true,textStyle: {color: '#fff', //百分比顏色fontSize: 8},position: 'right',//百分比格式formatter: function (data) {return (baifenbi[data.dataIndex]);},}},labelLine: {show: false,},z: 2,data: baifenbi,},//數據條--------------------我是分割線君------------------------------//{show: true,type: 'bar',xAxisIndex: 1, //代表使用第二個X軸刻度!!!!!!!!!!!!!!!!!!!!!!!!barGap: '-100%',barWidth: '40%', //統計條寬度itemStyle: {normal: {barBorderRadius: 200,color: 'transparent'},},label: {normal: {show: true,//label 的position位置可以是top bottom left,right,也可以是固定值//在這里需要上下統一對齊,所以用固定值position: ["-38%", '5%'],rich: { //富文本color: { //自定義顏色color: '#1BC5CC',fontSize: 12},value: xingm,start1: {},},formatter: function (data) {//富文本固定格式{colorName|這里填你想要寫的內容}return '{start1|}{color|' + xingm[data.dataIndex] + '}'},}},data: zongjine}]};option3 = {tooltip: {trigger: 'axis'},legend: {x: 'center',data: ['銷售', '銷售額'],textStyle: {color: "#fff",fontSize: 12},itemWidth: 8,itemHeight: 8,},calculable: true,xAxis: [{type: 'category',data: ['2019', '2020', '2021', '2022', '2023'],axisLabel: {textStyle: {color: 'rgba(255,255,255,.2)',// opacity: 0.1,}},"axisTick": {       //y軸刻度線"show": false},"axisLine": {       //y軸"show": false,},}],yAxis: [{type: 'value',scale: true,name: "銷量(噸)",nameTextStyle: {color: 'rgba(255,255,255,.2)',},max: 100000,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}},},{type: 'value',scale: true,name: "銷量額(萬元)",nameTextStyle: {color: 'rgba(255,255,255,.2)',},max: 600000,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: false,lineStyle: {color: ['#fff'],opacity: 0.2}},}],color: ['#0efcff', '#F45E23'],grid: {left: '3%',right: '4%',top: '25%',bottom: '5%',containLabel: true},series: [{name: '銷售',type: 'bar',data: [47800, 55000, 63580, 70000, 82000],},{name: '銷售額',type: 'bar',data: [28680, 33000, 38148, 45500, 53300],}]};HYChart1.setOption(option)HYChart2.setOption(option2)HYChart3.setOption(option3)setInterval(function () {numInit();HYChart1.clear();HYChart2.clear();HYChart3.clear();HYChart1.setOption(option);HYChart2.setOption(option2);HYChart3.setOption(option3);}, 7000)
</script>

作品來自于網絡收集、侵權立刪

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/pingmian/97715.shtml
繁體地址,請注明出處:http://hk.pswp.cn/pingmian/97715.shtml
英文地址,請注明出處:http://en.pswp.cn/pingmian/97715.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

華為網路設備學習-33(BGP協議 八)BGP路由 選路規則

一、目標與背景BGP路由特性&#xff1a;支持豐富的路徑屬性選路規則多樣注&#xff1a;在BGP路由表中最優選&#xff0c;不一定是路由表中的最優選。有可能存在靜態路由或者ospf路由等&#xff0c;其優先級高于BGP路由。二、選路規則概述從1到12&#xff0c;依次對比優先級。一…

深度學習(七):梯度下降

梯度下降&#xff08;Gradient Descent&#xff09;是深度學習中最核心的優化方法之一&#xff0c;它通過迭代更新模型參數&#xff0c;使得損失函數達到最小值&#xff0c;從而訓練出性能良好的神經網絡模型。 基礎原理 損失函數 在深度學習中&#xff0c;損失函數 L(θ) 是衡…

常見巖性分類與油氣勘探意義筆記

常見巖性分類與油氣勘探意義筆記 相關科普視頻可查看【說說巖石的分類-嗶哩嗶哩】 一、巖石基本分類體系 根據成因&#xff0c;自然界巖石可分為三大類&#xff0c;其中沉積巖與油氣勘探關系最為密切&#xff1a; 1. 火成巖&#xff08;巖漿巖&#xff09; 由巖漿冷卻凝固…

【Kubernetes】Tomcat 啟用 Prometheus 監控指標

之前出過一篇文章關于 “自定義監控指標實現業務 HPA 伸縮” &#xff0c;其中使用了 webapp 應用的指標數據&#xff08;JVM&#xff09;&#xff0c;接下來&#xff0c;這篇文章將介紹如何在通過 Tomcat 部署的 webapp 中啟用 Metrics 指標&#xff0c;一起來看看吧&#xf…

JVM 三色標記算法詳解!

目錄1. 什么是三色標記算法&#xff1f;三種顏色及其含義&#xff1a;2. 基礎三色標記算法流程 (非并發)3. 并發場景下的挑戰&#xff1a;一致性問題3.1. 漏標 (Missing Live Object) - 最嚴重的問題3.2. 錯標 (Floating Garbage) - 不那么嚴重的問題4. 屏障機制 (Barrier) - 解…

優化神經網絡模型以提升R2值至0.99的全面方案

優化神經網絡模型以提升R值至0.99的全面方案 1. 問題分析與背景 在深度學習項目中&#xff0c;提升模型的R&#xff08;決定系數&#xff09;值至0.99是一個具有挑戰性的目標&#xff0c;特別是在處理復雜的時間序列數據時。我們的現有模型結合了LSTM層、自注意力機制和MLP處理…

pgNow:一款免費的PostgreSQL監控與性能診斷工具

pgNow 是一款免費的桌面工具&#xff0c;可以為 PostgreSQL 數據庫提供快速集中的監控與性能診斷。 pgNow 不依賴代理&#xff0c;無需任何配置&#xff0c;可以幫助開發者或數據庫管理員&#xff08;DBA&#xff09;直觀地查看數據庫的統計信息和關鍵性能指標。 功能特性 跨平…

深入理解棧與隊列——從原理理解到實戰應用

目錄 一、引言 二、棧&#xff08;Stack&#xff09; 2.1 棧的基本概念 2.2 棧的使用 2.3 棧的模擬實現 2.4 棧的實戰應用 2.4.1 括號匹配 2.4.2 逆波蘭表達式求值 2.4.3 出棧入棧次序匹配 2.4.4 最小棧 三、隊列&#xff08;Queue&#xff09; 3.1 隊列的基本概念 …

用html5寫王者榮耀之王者墳墓的游戲2deepseek版

我將為您創建一個王者榮耀英雄墳墓游戲的提詞器HTML頁面。這個工具將幫助游戲主播或玩家在游戲中快速查看英雄技能、連招順序等信息。設計思路 創建英雄選擇界面實現提詞器顯示區域&#xff0c;可自定義文本內容添加字體大小、滾動速度控制設計符合王者榮耀風格的UI下面是…

輕閱讀:一鍵解決瀏覽器無法預覽Office文檔的實用方案

在日常辦公中&#xff0c;通過瀏覽器直接打開Word、Excel或PPT等文檔時&#xff0c;常遇到“需下載后用本地軟件打開”的困擾&#xff0c;不僅流程繁瑣&#xff0c;還面臨格式兼容、設備存儲不足等問題。輕閱讀&#xff08;QingYueDu&#xff09;作為一款輕量級文件在線預覽工具…

鴻蒙開發實戰項目(六十七):常見組件和容器低代碼開發示例(ArkTS)

本文詳細代碼需訂閱下面專欄獲取(訂閱后私信郵箱+項目名): https://blog.csdn.net/m0_68036862/category_12333038.html 目錄 介紹 環境搭建 代碼結構解讀 創建低代碼工程 低代碼設計界面布局 實現數據動態渲染 手動創建低代碼頁面 介紹 本篇Codelab是基于ArkTS語言的…

MySQL學習筆記04-DML-數據的增刪改

新增數據--insert樣例代碼-- DML : 數據操作語言 -- DML : 插入數據 - insert -- 1. 為 emp 表的 username, password, name, gender, phone 字段插入值 insert into emp (username,password,name,gender,phone) values(fei,123456,張飛,1,13888888888);-- 2. 為 emp 表的 所有…

拼多多返利app的服務網格(Service Mesh)實踐:Istio在導購系統中的應用

拼多多返利app的服務網格&#xff08;Service Mesh&#xff09;實踐&#xff1a;Istio在導購系統中的應用 大家好&#xff0c;我是阿可&#xff0c;微賺淘客系統及省賺客APP創始人&#xff0c;是個冬天不穿秋褲&#xff0c;天冷也要風度的程序猿&#xff01; 在拼多多返利app的…

【RabbitMQ】高級特性:持久性·發送方確認·重試機制·TTL·死信隊列·延遲隊列·事務·消息分發

RabbitMQ的高級特性還包括我的上篇博客 【RabbitMQ】-----詳解RabbitMQ高級特性之消息確認機制-CSDN博客 目錄 RabbitMQ高級特性之持久性 持久性 交換機持久化 隊列持久化消息持久化 RabbitMQ高級特性之發送方確認機制 發送方確認 添加配置 常量類 聲明隊列和交換機…

鴻蒙Next ArkWeb網頁多媒體開發實戰:從基礎到高級應用

解鎖鴻蒙ArkWeb的強大多媒體能力&#xff0c;讓網頁視頻音頻體驗媲美原生應用在日常應用開發中&#xff0c;我們經常需要在應用中嵌入網頁并展示其中的多媒體內容。鴻蒙HarmonyOS Next的ArkWeb組件提供了強大的網頁渲染能力&#xff0c;尤其對網頁中的多媒體元素有出色的支持。…

06. Linux進程概念 1

Linux進程概念 馮諾依曼體系 馮諾依曼體系結構&#xff08;Von Neumann Architecture&#xff09;是現代計算機設計的奠基石&#xff0c;由數學家約翰馮諾依曼于1945年提出。這一架構徹底改變了早期計算機“硬件即程序”的設計方式&#xff0c;使得計算機可以靈活地運行不同程序…

HTTP標頭全解析:保護你的Web應用!

在網絡攻擊頻發的時代&#xff0c;你的Web應用是否像一座沒有城墻的城堡&#xff0c;任由XSS、點擊劫持和中間人攻擊入侵&#xff1f;HTTP標頭&#xff0c;這些看似不起眼的響應頭&#xff0c;其實是Web安全的隱形守護者。想象一個電商網站&#xff0c;用戶數據被竊取&#xff…

rt-linux下__slab_alloc里的另外一處可能睡眠的邏輯

一、背景 在之前的博客 tasklet上下文內存分配觸發might_alloc檢查及同步回收調用鏈 里&#xff0c;我們講了一處內存分配時會引起睡眠的調用鏈&#xff08;這個引起睡眠的這個調用鏈它是在普通linux里也是存在的&#xff09;。這篇博客里&#xff0c;我們講一處內存分配路徑下…

基于STM32F103C8T6的智能環境監測系統:DHT11溫濕度檢測與OLED顯示實現

引言 你是否曾想實時握身邊環境的溫濕度變化&#xff1f;無論是居家種植需要精準調控環境&#xff0c;還是實驗室存放敏感材料需監控條件&#xff0c;亦或是智能座艙場景下的環境感知&#xff0c;智能環境監測系統正成為連接物理世界與數字管理的重要橋梁。而在眾多嵌入式開發…

動態規劃在子數組/子串問題

目錄 一、最大子數組和&#xff08;LeetCode 53&#xff09; 二、環形子數組的最大和&#xff08;LeetCode 918&#xff09; 三、乘積最大子數組&#xff08;LeetCode 152&#xff09; 四、乘積為正數的最長子數組長度&#xff08;LeetCode 1567&#xff09; 五、等差數列…