-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbarchart.css
69 lines (61 loc) · 977 Bytes
/
barchart.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
61
62
63
64
65
66
67
68
69
.bar>rect {
transition: fill 0.5s ease;
fill: #178FEB;
}
.bar>rect:hover {
fill: #1073BF;
}
.bar>text {
font: 1em sans-serif;
text-anchor: center;
}
.axis {
font: 1em sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #CCC;
shape-rendering: crispEdges;
}
.axis text {
fill: #222;
font-family: 'Open Sans';
}
.x.axis text {
font-weight: 600;
}
.y.axis path,
.x.axis path,
.x.axis .tick line {
display: none;
}
.svg-container {
display: inline-block;
position: relative;
width: 100%;
max-width: 500px;
padding-bottom: 100%; /* aspect ratio */
vertical-align: top;
overflow: hidden;
}
.svg-content-responsive {
display: inline-block;
position: absolute;
top: 10px;
left: 0;
}
.tooltip {
position: absolute;
text-align: right;
padding: 2px;
font: 16px 'Open Sans';
font-weight: bold;
color: #010428;
pointer-events: none;
}
text {
font-size: 16px;
text-anchor: middle;
font-family: "Open Sans";
}