可視化操作,實現橫向柱形echart圖 無邊框


圖片的實現:

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>占比</title>
</head>
<style type="text/css">
.bgF{
    height: 12px;
    background-color: #7299CF;
    border-radius: 10px 0 0 10px;
    width:50%;
  }
  .bgBar{
    height: 12px;
    background-color: #DB7272;
    margin: auto;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
  }
  .line{
    width: 4px;
    height: 12px;
    background: #fff;
    -webkit-transform: skew(30deg);
    transform: skew(30deg);
  }
  .bgL{
    margin-left: -10px;
    width: 15px;
    height: 12px;
    background: #7299CF;
    -webkit-transform: skew(30deg);
    transform: skew(30deg);
  }
</style>
<body>
  <div class="bgBar">
      <div class="bgF"></div>
    <div class="bgL"></div>
    <div class="line"></div>
    
  </div>
</body>
</html>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM