基于Echarts+HTML5可视化数据大屏展示—Echart图例使用

Posted java李杨勇

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于Echarts+HTML5可视化数据大屏展示—Echart图例使用相关的知识,希望对你有一定的参考价值。

🍅 作者主页:Java李杨勇 

🍅 简介:Java领域优质创作者🏆、Java李杨勇公号作者✌  简历模板、学习资料、面试题库、技术互助【关注我,都给你】

🍅 欢迎点赞 👍 收藏 ⭐留言 📝   

动图演示: 文末获取源码 

标题样式

某省地图用例

 表格柱状图等样式

代码目录:

主要代码实现:

主页HTML布局: 

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>Et使用示例网页</title>
    <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css">
    <link rel="stylesheet" href="assets/css/index.css"/>
</head>
<body>
<!--头部-->
<div class="header">
    Echart图例使用
    <a href="javascript:;" class="a-access">
        <button class="button type1">
    		返回
    	</button>
    </a>
</div>
<!--主体-->
<div class="main clearfix">
    <div class="main-left">
        <div class="border-container">
            <div class="name-title">标题样式</div>
            <div id="radar"></div>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
        <div class="border-container">
            <div class="name-title">标题样式</div>
            <div id="graduateyear"></div>
            <ul class="three-pie clearfix">
                <li>
                    <div id="sexrate"></div>
                </li>
                <li>
                    <div id="householdrate"></div>
                </li>
            </ul>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
    </div>
    <div class="main-middle">
        <div class="border-container">
            <div id="mapadd"></div>
            <div class="number-show">
                <ul>
                    <li>
                        <span class="span-name">第一标准</span>
                    </li>
                    <li>
                        <span class="span-number-show">653</span>
                    </li>
                    <li>
                        <span class="span-name">第二标准</span>
                    </li>
                    <li>
                        <span class="span-number-show">836252</span>
                    </li>
                    <li>
                        <span class="span-name">第三标准</span>
                    </li>
                    <li>
                        <span class="span-number-show">32162</span>
                    </li>
                </ul>
            </div>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
        <div class="border-container">
            <ul class="teacher-pie clearfix">
                <li>
                    <div class="name-title">标题样式</div>
                    <div id="courserate"></div>
                </li>
                <li>
                    <div class="name-title">标题样式</div>
                    <div id="professionrate"></div>
                </li>
            </ul>

            <div class="name-title">标题样式</div>
            <div id="changedetail"></div>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
    </div>
    <div class="main-right">
        <div class="border-container">
            <div class="name-title">标题样式</div>
           <table class="table table-kingdargen">
               <thead>
                   <tr>
                       <th>test1</th>
                       <th>test2</th>
                       <th>test3</th>
                       <th>test4</th>
                       <th>test5</th>
                   </tr>
               </thead>
               <tbody>
                   <tr>
                       <td>a</td>
                       <td>268</td>
                       <td>212</td>
                       <td>342</td>
                       <td>256</td>
                   </tr>
                   <tr>
                       <td>b</td>
                       <td>268</td>
                       <td>212</td>
                       <td>342</td>
                       <td>256</td>
                   </tr>
               
               </tbody>
           </table>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
        <div class="border-container">
            <div class="name-title">标题样式</div>
          <div id="juniorservice"></div>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
        <div class="border-container">
            <div class="name-title">标题样式 </div>
            <div id="edubalance"></div>
            <span class="top-left border-span"></span>
            <span class="top-right border-span"></span>
            <span class="bottom-left border-span"></span>
            <span class="bottom-right border-span"></span>
        </div>
    </div>
</div>
 
	
</body>

</html>

CSS样式文件

/* Create by gaojiye */
@charset "utf-8";
/*通用样式ͨ*/
body,ul,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd 
    margin:0;
    padding:0;

ul, li
    list-style: none;

a:link,
a:visited,
a:active 
    text-decoration: none;

body
    background: #040f3c;


.header
    height: 80px;
    position: relative;
    padding-top: 13px;
    font-size: 36px;
    color: #00ffff;
    text-align: center;
    background: url(../bg.png) top center no-repeat;

.header a.a-access
  position: absolute;
    right: 3%;
    top: -18%;

.main
    padding: 0 30px 30px;

.main-left,
.main-right
    float: left;
    width: 28%;
    padding: 0 10px;

.main-middle
    float: left;
    width: 44%;
    padding: 0 10px;


.border-container 
    position: relative;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.15);
	box-shadow: inset 0 0 50px rgba(255,255,255,.1),0 0 5px rgba(0,0,0,.3)


.border-container span.border-span 
    display: block;
    position: absolute;
    width:15px;
    height: 15px; opacity: .5


.border-container span.top-left 
    top: -2px;
    left:-2px;
    border-top: 2px solid #54dcf2;
    border-left: 2px solid #54dcf2;


.border-container span.top-right 
    top:-2px;
    right:-2px;
    border-top: 2px solid #54dcf2;
    border-right:2px solid #54dcf2;


.border-container span.bottom-left 
    bottom: -2px;
    left: -2px;
    border-bottom: 2px solid #54dcf2;
    border-left: 2px solid #54dcf2;


.border-container span.bottom-right 
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid #54dcf2;
    border-right: 2px solid #54dcf2;

.name-title
    font-size:16px; font-weight: bolder;
    color: #00ffff;

#radar
    height: 275px;

#dormitorydetail
    height: 135px;

#graduateyear
    height: 192px;

.three-pie
    border-top: 1px solid rgba(255,255,255,.1);
    margin: -10px;
    margin-top: 10px;

.teacher-pie
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin: -10px;
    margin-bottom: 0;

.three-pie li,
.teacher-pie li
    float: left;
    width: 50%;
    border-right: 1px solid rgba(255,255,255,.1);

.teacher-pie li .name-title
    padding-left:10px ;
    padding-top:10px ;

.three-pie li:last-child,
.teacher-pie li:last-child
    border-right: none;

#sexrate,
#nationarate,
#householdrate
    height: 266px;

#mapadd
    height: 304px;

.number-show
    position: absolute;
    top: 20%;
    right: 5%;

.number-show span.span-name
    font-size:14px ;
    color:#fffd51 ;

.number-show span.span-number-show
    font-size:18px ;
    color:#54b5b5 ;
    font-style: italic;

.number-show li
    line-height: 25px;

#teacherrate,
#courserate,
#professionrate
    height: 200px;

#agelist
    height: 130px;

#changedetail
    height: 229px;

.table-kingdargen
    margin-top: 6px;
    text-align: center;
    margin-bottom: 0;

.table-kingdargen>thead>tr>th
    border-bottom: 1px solid #0f4075;
    padding: 2px 8px;
    text-align: center;
    color: #419aff;
    font-size: 12px;
    font-weight: normal;
    border-top: 1px solid #0f4075!important;

.table-kingdargen tbody tr td
    padding: 1px 8px;
    font-size: 12px;
    border: none;
    color: #fff;

.table-kingdargen tbody tr:nth-child(2n)
    background: #1d2a42;

.table-kingdargen tbody tr:hover
    background: #1d2a42;

.table-kingdargen tbody tr td:nth-child(2)
    color: #e9aa00;

.table-kingdargen tbody tr td:nth-child(3)
    color: #53bf18;

.table-kingdargen tbody tr td:nth-child(4)
    color: #f9504a;

.table-kingdargen tbody tr td:nth-child(5)
    color: #12f0e9;

#juniorservice
    height: 190px;

#edubalance
    height: 203px;

@import url("https://fonts.googleapis.com/css?family=Raleway");
* 
  box-sizing: border-box;


.copyright 
  position: absolute;
  bottom: 0;

.copyright a 
  text-decoration: none;
  color: #16a085;

.copyright a:hover 
  text-decoration: underline;


.button 
  position: relative;
  padding: 0.5em 1.5em;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  font-size: 18px;
  margin: 1em 0.8em;

.button.type1 
  color: #00ffff;

.button.type1.type1::after, .button.type1.type1::before 
  content: "";
  display: block;
  position: absolute;
  width: 20%;
  height: 20%;
  border: 2px solid;
  transition: all 0.6s ease;
  border-radius: 2px;

.button.type1.type1::after 
  bottom: 0;
  right: 0;
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: #566473;
  border-right-color: #566473;

.button.type1.type1::before 
  top: 0;
  left: 0;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-top-color: #566473;
  border-left-color: #566473;

.button.type1.type1:hover:after, .button.type1.type1:hover:before 
  width: 100%;
  height: 100%;


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

上面的js文件等需要引入进来

 源码获取

大家点赞、收藏、关注、评论啦 、查看👇🏻👇🏻👇🏻微信公众号获取👇🏻👇🏻👇🏻

打卡 文章 更新 61/  100天

专栏推荐阅读:

ECharts+HTML5大数据模板《100套》

HTML5大作业实战案例《100套》

Java毕设项目精品实战案例《100套》

以上是关于基于Echarts+HTML5可视化数据大屏展示—Echart图例使用的主要内容,如果未能解决你的问题,请参考以下文章

基于Echarts+HTML5可视化数据大屏展示—运营大数据平台

基于Echarts+HTML5可视化数据大屏展示—北斗车联网大数据平台

基于Echarts+HTML5可视化数据大屏展示—某省物流大数据平台

基于Echarts+HTML5可视化数据大屏展示—某省物流大数据平台

基于Echarts+HTML5可视化数据大屏展示—大数据智慧数据平台

基于Echarts+HTML5可视化数据大屏展示—大数据智慧数据平台