-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpiechart.css
60 lines (55 loc) · 1.12 KB
/
piechart.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
*{
margin: 0;
padding: 0;
list-style: none;
}
.piechart-outer{
background: #fff;
border-radius: 50%;
}
.piechart-item{
display: block;
position: absolute;
margin-right: -1px;
border-radius: 50%;
}
.piechart-filled{
display: block;
position: absolute;
border-radius: 50%;
-webkit-backface-visibility: hidden;
}
.piechart-overhalf{
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
display: none;
}
.piechart-overhalf .piechart-filled{
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
.piechart-item{
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
.piechart-item .piechart-filled{
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
.piechart-inner{
position: relative;
margin: -240px auto 0 auto;
background: #fff;
text-align: center;
overflow: hidden;
z-index: 10;
border-radius: 50%;
}