zoukankan      html  css  js  c++  java
  • 全国疫情可视化统计

    全国疫情可视化统计

     
    复制代码
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
        <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
        <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>Document</title>
    <script src="echarts.js"></script> </head> <body> <div id="chatr" style="height:300px"></div> <script type="text/javascript"> var myChart = echarts.init(document.getElementById('chart')); var arr = new Array(); var index = 0; <c:forEach items="${data}" var="item"> arr[index++] = ${item.confirmed}; </c:forEach> var option = { title: { text: '' }, tooltip: { show: true }, legend: { data:['确诊人数'] }, xAxis : [ { type : 'category', data : [ <c:forEach items="${data}" var="g"> ["${g.name}"], </c:forEach> ] } ], yAxis : [ { type : 'value' } ], series : [ { name:'确诊人数', type:'bar', data: arr } ] }; myChart.setOption(option); </script> <% Object message = request.getAttribute("message"); if (message != null && !"".equals(message)) { %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <% } %> <div align="center"> <h1>疫情统计表</h1> <br> <form action="/search" method="post"> <input type="date" id="btime" name="btime">-<input type="date" id="etime" name="etime"> <button type="button" class="btn btn-info">查询</button> <br><br> <table> <thead> <tr> <th>编号</th> <th>日期</th> <th>省名</th> <th>市名</th> <th>确诊人数</th> </tr> </thead> <tbody> <c:forEach items="${data}" var="item" varStatus="status"> <tr > <td>${status.count}</td> <td>${item.date}</td> <td>${item.name}</td> <td>${item.city}</td> <td>${item.confirmed}</td> </tr> </c:forEach> </tbody> </table> </div> </body> </html>
     
  • 相关阅读:
    Browsermob-Proxy 备忘
    Restic 备份工具
    GP刷新实体视图
    SDKMAN安装使用
    The requested module '/node_modules/.vite/vue.js?v=65afd58f' does not provide an export named 'default'
    Python——执行打包提示 ‘pyinstaller‘ 不是内部或外部命令,也不是可运行的程序
    python 打包exe 方法
    Python使用阿里云镜像
    使用Python项目生成所有依赖包的清单方式
    Git GuiUI的乱码问题如何解决
  • 原文地址:https://www.cnblogs.com/wang2232985989/p/14908786.html
Copyright © 2011-2022 走看看