2
I need to do an effect like this on this site http://www.gt3themes.com/website-templates/timber/
well where this marked would like to know how does this effect and if you have any plugin for it
follow my test code:
.chart {
margin: 0 auto;
position: relative;
width: 70px;
height: 70px;
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;
}
.angular {
margin-top: 100px;
}
.angular .chart {
margin-top: 0;
}
.chart span {
margin-top: -19px;
font-size: 18px;
color: #2f2f2f;
font-family: 'Roboto', 'sans-serif';
font-weight: 700;
}
.percent:after {
content: '%';
margin-left: 0.1em;
font-size: .8em;
font-size: 18px;
color: #2f2f2f;
font-family: 'Roboto', 'sans-serif';
font-weight: 700;
}
.chart sup {
font-size: 18px;
color: #2f2f2f;
font-family: 'Roboto', 'sans-serif';
font-weight: 700;
top: 0px !important;
left: 0px !important;
margin-left: 1px;
}
.textP h3 {
margin-top: 22px;
text-align: center;
font-size: 20px;
color: #2f2f2f;
font-family: 'Roboto', 'sans-serif';
font-weight: 300;
}
.textP p {
line-height: 23px;
margin-top: 13px;
text-align: center;
font-size: 13px;
color: #2f2f2f;
font-family: 'Roboto', 'sans-serif';
font-weight: 300;
}
.bar {
margin-top: 32px;
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="chart" data-percent="64">
<span class="percent"></span>
</div>
</body>
<script type="text/javascript">
$('.chart').easyPieChart({
animate: 1000,
lineWidth: 3,
barColor: '#2f2f2f',
trackColor: '#dcdcdc',
lineCap: false,
lineWidth: '2',
size: '72',
scaleColor: false,
scaleColor: false,
animate: 2000,
onStep: function(from, to, percent) {
$(this.el).find('.percent').text(Math.round(percent));
}
});
</script>
</html>
friend so only have maps here and Graphics found nothing referring to what I mentioned
– Felipe Henrique
@Kirito Look at the first link, I put the precisely the plugin that makes the effect of the piechart of the site present in the question and the way to call it, the Second link provides Harts pie also however of effect and appearance different.
– Ricardo