Pie Chart Example
An example of a Google Pie Chart.
HTML
<div class="ptooltip">
<span></span>
<div class="label-info"><i class="p-flag-outline f18 vam dib tx-b"></i> <span>₹1000</span></div>
</div>
<div class="tr">RİGHT TOOLTIP<span>1000</span></div>
CSS
.label-info {
cursor: text;
font-size: 14px;
background: #fff;
background-clip: padding-box;
box-shadow: 0 0px 2px rgba(0, 0, 0, 0.5);
border: 1px solid #000;
border-radius: 3px;
position: absolute;
width: 100px;
height: 40px;
padding: 7px;
margin-left: 15px;
left: auto;
top: 0;
margin-top: -8%;
right: auto;
/* opacity: 0; */
-webkit-transition: opacity 0.5s linear;
-ms-transition: opacity 0.5s linear;
-o-transition: opacity 0.5s linear;
transition: opacity 0.5s linear;
}
.label-info span:before {
transition: all .5s linear;
position: absolute;
display: block;
content: "";
width: 8px;
height: 8px;
transform: rotate(45deg);
background: #000;
top: 36px;
z-index: 12;
left: 50px;
margin-left: -50px;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
}
.tr > span {
cursor: text;
font: italic 90% Georgia;
background: #fff;
background-clip: padding-box;
box-shadow: 0 0px 2px rgba(0, 0, 0, 0.5);
border: 1px solid #000;
border-radius: 6px;
position: absolute;
width: 149px;
height: 30px;
padding: 6px;
margin-left: 15px;
left: auto;
top: 80px;
margin-top: -7%;
right: auto;
}
.tr > span:before, .tr > span:after{ content: "";
position: absolute;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
bottom: 20px;
left: -19px;
top: 12px;}
.tr > span:before{border-right: 10px solid #000;margin-left: -1px;}
.tr > span:after{border-right:10px solid floralwhite;z-index: 1}