JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.4/jquery.easypiechart.min.js"></script>
<div class="row">
<!--div class="chart-title"><h2>Sample</h2></div-->
<div class="chart">
<div class="percentage easyPieChart" data-percent="55"><span>55</span></div>
<div class="label">New visitors</div>
</div>
<!--div class="chart-title"><h2>Step 1 Progress</h2></div-->
<div class="chart">
<div class="percentage easyPieChart" data-percent="10"><span>10</span></div>
<div class="label">10%</div>
</div>
</div>
CSS
html,
body {
padding: 0;
margin: 0;
}
body {
-webkit-font-smoothing: antialiased;
text-align: center;
font: 18px / 1.4 'Helvetica', 'Arial', sans-serif;
padding-top: 60px;
}
ul {
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0;
padding: 0;
height: 60px;
background: #cccccc;
font-size: 0;
line-height: 0;
letter-spacing: -0.3em;
}
li {
position: relative;
display: inline-block;
vertical-align: top;
width: 25%;
text-align: center;
font-size: 18px;
line-height: 60px;
letter-spacing: normal;
}
li a {
display: block;
color: #ffffff;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
}
li a:hover,
li a.active {
background: #333333;
color: #ffffff;
}
li a.active:after {
content: '';
position: absolute;
top: 100%;
left: 50%;
margin-left: -10px;
border: 10px solid;
border-color: transparent;
border-top-color: #333333;
}
.easyPieChart {
position: relative;
text-align: center;
}
.easyPieChart canvas {
position: absolute;
top: 0;
left: 0;
}
.chart-title {
width:110px;
}
.chart-title h2 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 1.4em;
text-align:center;
}
.chart {
position: relative;
display: inline-block;
width: 110px;
height: 110px;
margin-top: 50px;
margin-bottom: 50px;
text-align: center;
}
.chart canvas {
position: absolute;
top: 0;
left: 0;
}
.percent {
display: inline-block;
line-height: 110px;
z-index: 2;
}
.percent:after {
content: '%';
margin-left: 0.1em;
font-size: .8em;
}
.percentage, .label {
text-align: center;
color: #333;
font-weight: 100;
font-size: 1.2em;
margin-bottom: 0.3em;
}
.angular {
margin-top: 100px;
}
.angular .chart {
margin-top: 0;
}
input {
display: block;
margin: auto;
margin-bottom: 3em;
}
.btn {
display: block;
width: 200px;
margin: 0 auto;
padding: 10px 20px;
background: #cccccc;
color:...
JavaScript
$(function() {
$('.chart').easyPieChart({
//your configuration goes here
delay: 3000,
barColor : '#ef1e25',
trackColor: '#f2f2f2',
scaleColor: '#dfe0e0',
lineWidth: 3,
animate: 1000,
size:110
});
});