当前位置: 首页 > java >正文

基于Echarts+HTML5可视化数据大屏展示-图书馆大屏看板

效果展示:
在这里插入图片描述

代码结构:
在这里插入图片描述

主要代码实现
index.html布局

<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport"><link rel="stylesheet" href="./static/swiper.min.css"><link rel="stylesheet" type="text/css" href="./static/style.css"><title>上海市图书馆指挥中心</title><style id="ai-assist-right-style">html.ai-assist-html {width: calc(100% - 480px)!important;position: relative!important;min-height: 100vh!important}.ai-assist-highlight {background: yellow;}</style><script src="static/common.js"></script>
</head><body>
<div class="tsg box report"><!-- head --><div class="tsg_head "><div class="tsg_title fc"><div class="d1"><p id="time">2024-6-21 10:1:49</p></div><div class="d2"><img src="./static/title.png"></div><div class="d3"><iframe allowtransparency="true" frameborder="0" width="255" height="60" scrolling="no" src="https://tianqi.2345.com/plugin/widget/index.htm?s=1&z=1&t=1&v=0&d=1&bd=0&k=000000&f=00ffff&ltf=009944&htf=cc0000&q=0&e=0&a=1&c=54511&w=255&h=60&align=center"></iframe></div></div><div class="tsg_hul fc"><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>馆藏图书</span><img class="img2" src="./static/right.png"></p><p class="p2">3367220<span></span></p></div><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>新增图书</span><img class="img2" src="./static/right.png"></p><p class="p2">76921<span></span></p></div><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>读者总数</span><img class="img2" src="./static/right.png"></p><p class="p2">271599<span></span></p></div><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>新增读者</span><img class="img2" src="./static/right.png"></p><p class="p2">19206<span></span></p></div><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>借阅总量</span><img class="img2" src="./static/right.png"></p><p class="p2">17741348<span></span></p></div><div class="tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>最近借阅</span><img class="img2" src="./static/right.png"></p><p class="p2">1066937<span></span></p></div></div></div><div class="tsg_box fl"><!-- 左侧 --><div class="tsg_box_left tsg_box_lis"><!-- 新增馆藏/新增读者分析 --><div class="tsg_box_left_li tsg_table_6"><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>新增馆藏/新增读者分析</span><img class="img2" src="./static/right.png"></p></div><!-- echarts_1 --><div id="echarts_1" class="echarts_1" _echarts_instance_="ec_1718935309104" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;"><div style="position: relative; width: 559px; height: 243px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="559" height="243" style="position: absolute; left: 0px; top: 0px; width: 559px; height: 243px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div></div><!-- 到馆人次/借阅册次分析 --><div class="tsg_box_left_li tsg_table_6"><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>到馆人次/借阅册次分析</span><img class="img2" src="./static/right.png"></p></div><!-- echarts_2 --><div><div id="echarts_2" class="echarts_1 echarts_tab" _echarts_instance_="ec_1718935309105" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative; display: block;"><div style="position: relative; width: 559px; height: 243px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="559" height="243" style="position: absolute; left: 0px; top: 0px; width: 559px; height: 243px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div><div id="echarts_21" class="echarts_1 echarts_tab" _echarts_instance_="ec_1718935309106" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative; display: none;"><div style="position: relative; width: 559px; height: 243px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="559" height="243" style="position: absolute; left: 0px; top: 0px; width: 559px; height: 243px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div><div id="echarts_22" class="echarts_1 echarts_tab" _echarts_instance_="ec_1718935309107" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative; display: none;"><div style="position: relative; width: 559px; height: 243px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="559" height="243" style="position: absolute; left: 0px; top: 0px; width: 559px; height: 243px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div></div></div></div><!-- 中间 --><div class="tsg_box_center tsg_box_lis"><!-- 实时客流分析 --><div class="tsg_box_left_li tsg_table_3"><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>实时客流分析</span><img class="img2" src="./static/right.png"></p></div><div class="tsg_online_kl fc"><div class="tsg_online_kl_li fc"><div><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>今日入馆</span><img class="img2" src="./static/right.png"></p></div><div class="tsg_online_kl_1">235</div><div class="tsg_online_kl_2"></div></div></div><div class="tsg_online_kl_li fc"><div><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>当前在馆</span><img class="img2" src="./static/right.png"></p></div><div class="tsg_online_kl_1 tsg_online_kl_11">95</div><div class="tsg_online_kl_2"></div></div></div></div><div class="tsg_online_text">7小时内读者滞馆情况</div><!-- echarts_3 --><div id="echarts_3" class="echarts_2" _echarts_instance_="ec_1718935309108" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;"><div style="position: relative; width: 552px; height: 270px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="552" height="270" style="position: absolute; left: 0px; top: 0px; width: 552px; height: 270px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div></div></div><!-- 右侧 --><div class="tsg_box_right tsg_box_lis"><!-- 最近24小时分管借阅情况 --><div class="tsg_box_left_li tsg_table_7"><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>最近24小时分管借阅情况</span><img class="img2" src="./static/right.png"></p></div><div class="tsg_box_rul tsg_box_rul24 "><div class="tsg_box_rhead fc"><div class="d1">借阅位置</div><div class="d1">册次</div><div class="d1">最后借阅时间</div></div><div class="tsg_box_rtr"><div class="tsg_box_rli fc"><div class="d2">上海图书馆综合借阅室</div><div class="d3">121</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆璜土分管</div><div class="d3">105</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆少儿馆</div><div class="d3">95</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆嘉定分馆</div><div class="d3">84</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆世纪广场</div><div class="d3">76</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆长宁分馆</div><div class="d3">59</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆少儿馆</div><div class="d3">49</div><div class="d4">2024-08-25 17:00:00</div></div><div class="tsg_box_rli fc"><div class="d2">上海图书馆综合借阅室</div><div class="d3">44</div><div class="d4">2024-08-25 17:00:00</div></div></div></div></div><!-- 读者构成情况分析 --><div class="tsg_box_left_li tsg_table_7"><div class="tsg_box_t tsg_hli"><p class="p1"><img class="img1" src="./static/right.png"><span>读者构成情况分析</span><img class="img2" src="./static/right.png"></p></div><div class="tsg_box_two fc"><div id="echarts_4" class="echarts_3 tsg_box_two_li" _echarts_instance_="ec_1718935309109" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;"><div style="position: relative; width: 279px; height: 270px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="279" height="270" style="position: absolute; left: 0px; top: 0px; width: 279px; height: 270px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div><div id="echarts_5" class="echarts_4 tsg_box_two_li" _echarts_instance_="ec_1718935309110" style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;"><div style="position: relative; width: 279px; height: 270px; padding: 0px; margin: 0px; border-width: 0px;"><canvas data-zr-dom-id="zr_0" width="279" height="270" style="position: absolute; left: 0px; top: 0px; width: 279px; height: 270px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas></div><div></div></div></div></div></div></div>
</div>
<script type="text/javascript" src="./static/jquery.min.js"></script>
<script type="text/javascript" src="./static/swiper.min.js"></script>
<script type="text/javascript" src="./static/echarts.min.js"></script>
<script type="text/javascript" src="./static/common.js"></script>
<script>var swiper = new Swiper('.swiper-container',{pagination:'.swiper-pagination',loop:true,autoplay:3000,//grabCursor:true,centeredSlides:true,slidesPerView:'2',effect:'coverflow', //叠加coverflow:{rotate:0,//滑动时旋转角度stretch:50,//聚合宽度depth:100,//景深modifier:1,//覆盖叠加层数slideShadows:false//是否阴影}});window.onload = function(){getCurDate()}setInterval("getCurDate()", 1000);function getCurDate() {var date = new Date()var y = date.getFullYear();var m = date.getMonth() + 1;var d = date.getDate();var h = date.getHours();var min = date.getMinutes();var s = date.getSeconds();s = s<10 ? "0" + s : s;document.getElementById("time").innerHTML = y + "-" + m + "-" + d + " " + h + ":" + min + ":" + s;}
</script>
<!---->
</body>
</html>

作品来自于网络收集、侵权立删

http://www.xdnf.cn/news/20355.html

相关文章:

  • 软考 系统架构设计师系列知识点之杂项集萃(142)
  • JVM中如何调优新生代和老生代?
  • 基于LSTM深度学习的网络流量测量算法matlab仿真
  • C++ 内存模型:用生活中的例子理解并发编程
  • linux C 语言开发 (三) 建立云服务器
  • C++ 小游戏:拍桌子
  • Nmap网络扫描工具详细使用教程
  • 算法学习路径
  • 基于 Gemini 的 CI/CD 自动化测评 API 集成实战教程
  • Browser Use:打造你的浏览器自动化助手
  • Python数据可视化科技图表绘制系列教程(六)
  • 【Python自动化】 21 Pandas Excel 操作完整指南
  • 小杰机器学习(two)——导数、损失函数、斜率极值最值、微分规则、切平面与偏导数、梯度。
  • Rust 登堂 之 Deref 解引用(十)
  • 一文掌握工业缺陷检测项目实战(Pytorch算法训练、部署、C++ DLL制作、Qt集成)
  • 微信小程序(uniapp)实现连接蓝牙
  • cuda-NCCL笔记(1)-- 初步了解使用NCCL
  • Python 多线程与多进程入门指南
  • Windows 设备音频录制 | WASAPI 音频数据采集 / 环回录制
  • 【基础-单选】singleton模式下首次进入的执行顺序是
  • C++趣味编程:鸡兔同笼与票务计算
  • cocos2d. 3.17.2 c++如何实现下载断点续传zip压缩包带进度条
  • 【VoNR】VoNR 不等于 VoLTE on 5G
  • vcenter管理的4台安装了esxi机器组成的HA,故障后自恢复理解
  • 飞牛NAS配置FRP内网穿透:实现远程访问
  • DocuAI深度测评:自动文档生成工具如何高效产出规范API文档与数据库表结构文档?
  • 【教学类-36-10】20240905(通义万相)-A4各种大小的鱼制作“吐泡泡的鱼”01版
  • Python反向迭代完全指南:从基础到高性能系统设计
  • C++从入门到精通(视频教程)
  • More Effective C++ 条款30:代理类