svgmap实现一个全国地图数据分布统计图表效果代码

代码语言:html

所属分类:图表

代码描述:svgmap实现一个全国地图数据分布统计图表效果代码

代码标签: 全国 地图 数据 分布 统计 图表 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
   
<meta charset="UTF-8">

   
<title>svgmap全国地图数据分布统计</title>


   
<style>
        p
,ul,li,h1,h2,h3,h4,body,dd,dt,dl,blockquote {
           
margin: 0;
           
padding: 0
       
}
        img
{
           
border: 0
       
}
        li
{
           
list-style-type: none
       
}
        a
{
           
color: #555;
           
font-size: 12px;
           
cursor: pointer;
           
text-decoration: none
       
}
       
a:hover {
           
color: #ff8400;
           
text-decoration: none
       
}
       
.fr {
           
float: right
       
}
       
.fl {
           
float: left
       
}
       
.cl {
           
clear: both
       
}
       
.clearfix:after {
           
visibility: hidden;
           
display: block;
           
font-size: 0;
           
content: " ";
           
clear: both;
           
height: 0
       
}
       
*:first-child+html .clearfix {
           
zoom: 1
       
}
        body
{
           
font-family: "Helvetica Neue",arial,helvetica,sans-serif,"Microsoft YaHei";
           
font-size: 13px;
           
color: #211922;
       
}
       
/* 提示自定义 */
       
.stateTip, #map_tip {
           
display: none;
           
position: absolute;
           
padding: 8px;
           
background: #fff;
           
border: 2px solid #2385B1;
           
-moz-border-radius: 4px;
           
-webkit-border-radius: 4px;
           
border-radius: 4px;
           
font-size: 12px;
           
font-family: Tahoma;
           
color: #333;
       
}

       
.mapInfo i {
           
display: inline-block;
           
width: 15px;
           
height: 15px;
           
margin-top: 5px;
           
line-height: 15px;
           
font-style: normal;
           
background: #aeaeae;
           
color: #fff;
           
font-size: 11px;
           
font-family: Tahoma;
           
-webkit-border-radius: 15px;
           
border-radius: 15px;
           
text-align: center
       
}
       
.mapInfo i.active {
           
background: #E27F21;
       
}
       
.mapInfo span {
           
padding: 0 5px 0 3px;
       
}
       
.mapInfo b {
           
font-weight: normal;
           
color: #2770B5
       
}

       
.progress {
           
border-radius: 0;
           
-webkit-box-shadow: none;
           
box-shadow: none;
           
background: #dadada;
           
height: 20px;
       
}
       
.progress .progress-bar {
           
-webkit-box-shadow: none;
           
box-shadow: none;
           
line-height: 18px
       
}
       
.progress[data-percent] {
           
position: relative
       
}
       
.progress[data-percent]:after {
           
display: inline-block;
           
content: attr(data-percent);
           
color: #FFF;
           
position: absolute;
           
left: 0;
           
right: 0;
           
top: 0;
           
bottom: 0;
           
line-height: 20px;
           
text-align: center;
           
font-size: 12px;
           
font-family: Verdana
       
}
       
.progress.progress-yellow[data-percent]:after {
           
color: #963
       
}
       
.progress.progress-small {
           
height: 12px
       
}
       
.progress.progress-small .progress-bar {
           
line-height: 10px;
           
font-size: 11px
       
}
       
.progress.progress-small[data-percent]:after {
           
line-height: 10px;
           
font-size: 11px
       
}
       
.progress.progress-mini {
           
height: 9px
       
}
       
.progress.progress-mini .progress-bar {
           
line-height: 8px;
           
font-size: 11px
       
}
       
.progress.progress-mini[data-percent]:after {
           
line-height: 8px;
           
font-size: 11px
       
}
       
.progress-bar {
           
background-color: #2a91d8
       
}
       
.map_deep {
           
text-align: center;
       
}
       
.progress-bar {
           
background-color: #428bca;
           
color: #fff;
           
float: left;
           
font-size: 12px;
           
height: 100%;
           
text-align: center;
           
transition: width 0.6s ease 0s;
           
width: 0;
       
}
   
</style>
</head>
<body>

   
<div id="Region" style="position:relative; height:500px;width:850px;margin:0 auto" class="clearfix">

       
<div class="maps_area clearfix" id="maps_area" style="float:left;">
           
<div class="regionMap" id="RegionMap" style="margin:30px 0 0"></div>
           
<div class="map_deep">
               
<img src="//repo.bfw.wiki/bfwrepo/image/60e5678e0eb07.png" />
           
</div>
       
</div>
       
<div class="regionList" id="MapControl" style="margin:170px 0 0 50px;float:left;width:350px">
           
<div class='item'>
               
<div class="bars clearfix" style="margin:0 0 10px">
                   
<div class="col-sm-9" style="float: left;width:250px">
                       
<div class="progress" data-percent="35.38%">
                            <div class="progress-bar" style="width:35.38%;background-colo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0