If you're looking to create a chart with this structure:
<div class="chart">
<div class="horizontal-layer">
<div class="horizontal">
<h6 class="text">Skill #1</h6>
<span class="bar" style="width:50%"></span>
</div>
<div class="horizontal">
<h6 class="text">Skill #2</h6>
<span class="bar" style="width:60%"></span>
</div>
<div class="horizontal">
<h6 class="text">Skill #3</h6>
<span class="bar" style="width:90%"></span>
</div>
<div class="horizontal">
<h6 class="text">Skill #4</h6>
<span class="bar" style="width:80%"></span>
</div>
<div class="horizontal">
<h6 class="text">Skill #5</h6>
<span class="bar" style="width:100%"></span>
</div>
</div>
<div class="vertical-layer">
<div class="vertical">
<h6>Beginner</h6>
<span class="line"></span>
</div>
<div class="vertical">
<h6>Elementary</h6>
<span class="line"></span>
</div>
<div class="vertical">
<h6>Intermediate</h6>
<span class="line"></span>
</div>
<div class="vertical">
<h6>Advanced</h6>
<span class="line"></span>
</div>
<div class="vertical">
<h6>Expert</h6>
<span class="line"></span>
</div>
</div>
</div>
Along with the following CSS:
.chart{
max-width: 500px;
padding: 10px;
padding-top: 55px;
position: relative;
}
.horizontal{
margin-bottom: 10px;
display: flex;
align-items: center;
}
.horizontal .text{
flex: 0 0 75px;
}
.bar{
display: block;
height: 9px;
background: #dfdfdf;
border: 1px solid #777;
}
.vertical-layer{
position: absolute;
top: 0;
left: 85px;
display: flex;
justify-content: space-between;
width: 80%;
height: 100%;
}
.vertical{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.vertical .line{
width: 2px;
height: 100%;
background: blue;
display: block;
border: none;
}
Try implementing these code snippets to achieve the desired layout. Have fun exploring this approach!